0.0.5 • Published 8 years ago

mithril-template-converter v0.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Mithril HTML to JavaScript converter

Version of Mithril's template-converter built with Polythene.

Live version

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.