Skip to content

1.2.0 — Separate XML from HTML functionality, add `attr`

Latest
Compare
Choose a tag to compare
@ArthaTi ArthaTi released this 30 Nov 19:45
· 3 commits to main since this release
f1e7516

Using exclusively XML? From now on, you can import elemi.xml and elem will then default to elemX behavior.

  • For old behavior, use import elemi or import elemi.html.

Now there's a new, faster and prettier syntax for adding attributes at runtime:

elem!"div"(
    attr("id") = "named",
    attr("class") = ["hello", "world!"],
)
// <div id="named" class="hello world">