1.0.0 • Published 10 years ago
htmltemplate-vdom v1.0.0
htmltemplate-vdom
WIP
npm install htmltemplate-vdomHTML::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.jsExamples
Precompiled
Use npm run precompile to precompile example template.
Server render
node example/server/index.jsClient runtime render
Not recommended, requires full parser and escodegen on the client.
npm install
webpack
open example/client/index.htmlTests
# npm install mocha -g
npm test