tagl-mithril
Wrapper around tagl, a readability enhancement for hyperscript code. The example tagl function for mithril is extended by camelcase to hyphenated syntax for css-classes and ids.
Installation
npm install --save tagl-mithril
Example usage
; const nav section footer h1 div} = ; m
The above snippet will be rendered to the DOM like this:
... Hello Tagl And Mithril...
What you should have noticed ...
... is that you need to define all tags that you want to use as a result of tagl_hyperscript(m)
.
... is that isInfo
was turned into is-info
, because css classes don't like camelcase.
... is that $home
was transformed into an id attribute for the section.