twinkie

Automatic template interfaces from polymer template files

Usage no npm install needed!

<script type="module">
  import twinkie from 'https://cdn.skypack.dev/twinkie';
</script>

README

Flow Of Processing

* DOM_WALKER
* EXPRESSION_EXTRACTOR
* AST_BUILDER
* AST_TREE_BUILDER
* PRINTER

How to use

To print the generated class:

./bin.js test/data/nested.html

To print a faux use of the class:

./bin.js test/data/nested.html MyView --print-use

To print a faux use of the class passing undefined to all args for polymer 2:

./bin.js test/data/nested.html MyView --print-use --undefined-check