bigote:无逻辑模板引擎

时间:2024-07-17 12:36:41
【文件属性】:

文件名称:bigote:无逻辑模板引擎

文件大小:129KB

文件格式:ZIP

更新时间:2024-07-17 12:36:41

JavaScript

偏执狂 无逻辑模板引擎 将 mustache 模板编译为 AST,然后使用超薄运行时引擎呈现。 请检查基准测试以了解自己的性能,甚至超过了dust.js 10-20%。 仍然是 alpha 产品,用它来玩弄。 特征 完全支持小胡子模板。 请参阅示例目录以获取 mustache 手册页中的示例。 特征 变量 - 存在、不存在(空字符串)、html 转义 注释 去做 设置分隔符 - 尚不支持(仅支持默认分隔符) 加载 编译模板 var bigote=require('bigote'); // load the templates var compiledTemplate = bigote.load(templateString); 使成为 渲染编译模板 // set the data in context and call var result=bigote.render(compile


【文件预览】:
bigote-master
----.travis.yml(36B)
----todo.md(779B)
----benchmark()
--------uubench.js(2KB)
--------server.js(725B)
--------index.html(5KB)
--------dust-full-0.3.0.min.js(25KB)
--------suites()
----bin()
--------bigote(978B)
----index.js(90B)
----package.json(661B)
----test()
--------mocha.opts(26B)
--------sections.js(4KB)
--------comment.js(1KB)
--------variables.js(7KB)
----LICENSE(1KB)
----dist()
--------bigote-full-0.3.0.js(46KB)
----src()
--------bigote.pegjs(2KB)
----.npmignore(28B)
----doc()
--------images()
----examples()
--------four.js(431B)
--------six.js(396B)
--------sample.js(2KB)
--------object.js(570B)
--------complex.js(2KB)
--------five.js(326B)
--------one.js(619B)
--------simple.js(245B)
--------eight.js(367B)
--------two.js(323B)
--------three.js(404B)
--------templates()
--------seven.js(208B)
--------filter.js(657B)
--------partial.js(707B)
--------array.js(656B)
--------replace.js(671B)
--------recursion.js(735B)
--------string.js(634B)
----.gitignore(93B)
----History.md(846B)
----lib()
--------bigote.js(560B)
--------translate.js(4KB)
--------runtime.js(5KB)
--------parser.js(26KB)
----Makefile(256B)
----README.md(2KB)

网友评论