uparser
Version:
The uhtml template parser
16 lines (10 loc) • 677 B
Markdown
# <em>µ</em>parser
[](https://travis-ci.com/WebReflection/uparser) [](https://coveralls.io/github/WebReflection/uparser?branch=master)
The _[µhtml](https://github.com/WebReflection/uhtml#readme)_ and _[µcontent](https://github.com/WebReflection/ucontent#readme)_ template parser.
```js
import parse from 'uparser';
const html = template => parse(template, 'secret', false);
const svg = template => parse(template, 'secret', true);
html`<div />`; // <div></div>
svg`<rect />`; // <rect />
```