mithril-template-converter

0.0.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i mithril-template-converter

Weekly Downloads

1

Version

0.0.5

License

MIT

Last publish

Collaborators

  • arthurclemens