tppl icon indicating copy to clipboard operation
tppl copied to clipboard

纳米级 js 模板引擎

Results 4 tppl issues
Sort by recently updated
recently updated
newest added

明明是[=:this.title:] 为什么写成[:= :]

解决办法: 28行代码 请换成 for循环: //for(var t in tpls){ for(var t = 0;t < tpls.length;t++){

允许用户在渲染模板之前调用tppl.helper方法注册helper,在模板中调用helper,更加方便的处理模板中得元素。 对项目做了以下修改: 1.增加`tppl.helper`方法 2.增加`[: variable | helperName:"format" :]`语法 3.修改了README文档 性能方面,通过你提供的测试CASE,发现并未有太大波动。具体的指标,你可以再仔细测下。

[:=abc:] 这种直接取值的,如果data里面没有传abc的值,模板会崩掉.我增加了判断的代码用在我的项目里. 能分享一下为啥你不去实现这个判断吗?有啥考虑吗?