{"library":"mithril-template","title":"mithril-template","description":"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.","language":"javascript","status":"abandoned","last_verified":"Fri May 01","install":{"commands":["npm install mithril-template"],"cli":null},"imports":["var mithrilTemplate = require('mithril-template')","const { compile } = require('mithril-template')","<script src='mithril-template.js'></script>"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"var mithrilTemplate = require('mithril-template');\nvar hyperscript = mithrilTemplate('<h1 class=\"greetings\">Hello {{ name }}!</h1>');\nconsole.log(hyperscript); // m('.greetings','Hello '+name+'!')","lang":"javascript","description":"Converts an HTML template string with interpolation to Mithril hyperscript function call.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}