htmltemplate-vdom
WIP
npm install htmltemplate-vdom
HTML::Template engine on top of virtual-dom.
CLI
# will output compiled template htmltemplate-vdom --path test/basic/template.tmpl # will output compiled template and html using provided data htmltemplate-vdom --path test/basic/template.tmpl --run test/basic/env.js
Examples
Precompiled
Use npm run precompile
to precompile example template.
Server render
node example/server/index.js
Client runtime render
Not recommended, requires full parser and escodegen on the client.
npm installwebpack open example/client/index.html
Tests
# npm install mocha -g npm test