gz-util-tool-tpl

1.0.8 • Public • Published

gz-util-tool-tpl

simple js template engine

usage: put js code within '<% [js code] %>'. put code within '<%= [js code] %>' if something need to show on page.

var template = <div> <% if(it) { %> <%= it %> <% }%> </div>; var data = 'test'; import {tpl} from 'gz-util-tool-tpl'; tpl(template)(data);

Readme

Keywords

none

Package Sidebar

Install

npm i gz-util-tool-tpl

Weekly Downloads

1

Version

1.0.8

License

ISC

Last publish

Collaborators

  • andregeng