HTML to Mithril hyperscript transpiler that converts HTML templates into Mithril's virtual DOM hyperscript (m()) calls. Version 0.0.1, early stage, no formal release cadence. Supports interpolation (mustache syntax), binding attributes with colon prefix, component embedding (kebab-case to camelCase), and directives (if/elseif/else/for). Differentiates from similar tools by its directive system and non-standard component naming conventions. Limited documentation and no ongoing maintenance observed.
npm install mithril-templateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Converts an HTML template string with interpolation to Mithril hyperscript function call.
Use require() instead of import.
Write <custom-component></custom-component> not <custom-component />.
Use binding attribute syntax with colon, e.g., :key="foo" instead of key="{{ foo }}".Use {{ '{' }} and {{ '}'+'}' }} or similar string concatenation.Consider alternatives like mithril-node-render or custom source transform.
Prefix data-bound attributes with colon: <custom-component :class="'custom-class'"></custom-component>.
Run 'npm install mithril-template' and use require('mithril-template').Use const mithrilTemplate = require('mithril-template') instead of import.The default export is the compile function. Use const compile = require('mithril-template').No dependency data recorded yet.