Socket
Socket
Sign inDemoInstall

htmltemplate-vdom

Package Overview
Dependencies
127
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    htmltemplate-vdom

HTML::Template engine on top of virtual-dom


Version published
Weekly downloads
14
increased by600%
Maintainers
1
Install size
4.08 MB
Created
Weekly downloads
 

Readme

Source

htmltemplate-vdom

TravisCI

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

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 install mocha -g

npm test

https://github.com/agentcooper/htmltemplate-react

Keywords

FAQs

Last updated on 30 Dec 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc