@jswork/next-literal-tmpl
v1.0.2
Published
Literals template engine like es6.
Downloads
9
Maintainers
Readme
next-literal-tmpl
Literals template engine like es6.
installation
npm install -S @jswork/next-literal-tmpl
usage
import '@jswork/next-literal-tmpl';
const str = '${GITHUB_API_TOKEN} - ${afei}';
const ctx = {
GITHUB_API_TOKEN: 'xxx-yyy-zzz',
afei: 'zhengfei'
};
nx.literalTmpl(str, ctx);
// 'xxx-yyy-zzz - zhengfei'
license
Code released under the MIT license.