Mithril HTML to JavaScript converter
Version of Mithril's template-converter built with Polythene.
Call from script
const input = "<hr/>"const output =
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.