网址
https://github.com/baryon/node-tinytim
用法
var tim = require('tinytim').tim;
var result = tim("Hello {{place}}", {place: "world"});
console.log(result); // Hello world
非常适合作为express模版库的补充,将生成的字符串,html,或者xml片段作为local变量输出
网址
https://github.com/baryon/node-tinytim
用法
var tim = require('tinytim').tim;
var result = tim("Hello {{place}}", {place: "world"});
console.log(result); // Hello world
非常适合作为express模版库的补充,将生成的字符串,html,或者xml片段作为local变量输出