htmltemplate-vdom
WIP
npm install htmltemplate-vdom
HTML::Template engine on top of virtual-dom.
CLI
htmltemplate-vdom --path test/basic/template.tmpl
htmltemplate-vdom --path test/basic/template.tmpl --run test/basic/env.js
Examples
Precompiled
Demo
Source
Use npm run precompile
to precompile example template.
Server render
Source
node example/server/index.js
Client runtime render
Not recommended, requires full parser and escodegen on the client.
Demo
Source
npm install
webpack
open example/client/index.html
Tests
npm test
Related
https://github.com/agentcooper/htmltemplate-react