README
block-ast
Transform template's block syntax to ast.
Nodes
Fragment
- nodeType 1
Block
- nodeType 2
- openHTML
- closeHTML
SCS
- nodeType 3
- outerHTML
Text
- nodeType 4
- nodeValue
Custom template syntax and pase to ast.
<script type="module">
import blockAst from 'https://cdn.skypack.dev/block-ast';
</script>
Transform template's block syntax to ast.
Fragment
Block
SCS
Text