html-to-ivi
v0.0.2
Published
Converts HTML to ivi Virtual DOM.
Downloads
4
Maintainers
Readme
html-to-ivi
Transforms HTML to ivi Virtual DOM.
Usage Example
section.html
:
<section>
<p>Paragraph 1.</p>
<p>Paragraph 2.</p>
</section>
Run html-to-ivi
:
$ html-to-ivi --file ./section.html
Output:
function Component() {
return h.section().children(h.p(), h.p());
}
Options
--file -f <name> Input file.
--no-trim Disable whitespace trimming.
--component-name <name> Component name.
--version -v Print version.