Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gz-util-tool-tpl

andregeng19ISC1.0.8

simple template engine based on es6 string literal

readme

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);