0.0.2 • Published 7 years ago

html-to-ivi v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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.