0.2.1 • Published 4 years ago
µparser
The µhtml and µcontent template parser.
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 />