0.0.5 • Published 8 years ago
mithril-template-converter v0.0.5
Mithril HTML to JavaScript converter
Version of Mithril's template-converter built with Polythene.
Call from script
import templateBuilder from "app/converter/template-builder"
const input = "<hr/>"
const output = templateBuilder(input)
Updating code
Requires babel and uglifyjs.
es6 modules are transpiled to es5 using either:
npm run transpile
npm run watch
Tests
Run tests/testrunner.html
in a browser.
Update test code, transpile (see above), run test.