Skip to content

ivijs/html-to-ivi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

HTML to ivi Virtual DOM transformer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published