@ossph/temple-parser
v0.0.12
Published
Parses the Temple markup language to an abstract syntac tree (AST).
Downloads
16
Readme
⛩️ Temple Parser
This package is designed for Temple, the reactive web component template engine. See docs for more information.
Parses the Temple markup language to an abstract syntac tree (AST). This is used by the @ossph/temple-compiler to convert the Temple markup language to JavaScript and HTML.
Install
$ npm -i @ossph/temple-parser
Basic Usage
import { TempleParser } from '@ossph/temple-parser';
const ast = TempleParser.parse('<h1>Hello World</h1>');