artTemplate:性能卓越的 js 模板引擎[转]

时间:2021-07-24 16:56:22
【文件属性】:
文件名称:artTemplate:性能卓越的 js 模板引擎[转]
文件大小:313KB
文件格式:ZIP
更新时间:2021-07-24 16:56:22
JavaScript artTemplate-3.0 新一代 javascript 模板引擎 目录 特性 性能卓越,执行速度通常是 Mustache 与 tmpl 的 20 多倍() 支持运行时调试,可精确定位异常模板所在语句() 对 NodeJS Express 友好支持 安全,默认对输出进行转义、在沙箱中运行编译后的代码(Node版本可以安全执行用户上传的模板) 支持include语句 可在浏览器端实现按路径加载模板() 支持预编译,可将模板转换成为非常精简的 js 文件 模板语句简洁,无需前缀引用数据,有简洁版本与原生语法版本可选 支持所有流行的浏览器 快速上手 编写模板 使用一个type="text/html"的script标签存放模板: [removed]

{{title}}

    {{each list as valu
    【文件预览】:
    artTemplate-master
    ----Gruntfile.js(3KB)
    ----src()
    --------syntax.js(3KB)
    --------outro.js(250B)
    --------compile.js(8KB)
    --------onerror.js(510B)
    --------renderFile.js(444B)
    --------config.js(604B)
    --------helper.js(255B)
    --------template.js(481B)
    --------get.js(686B)
    --------cache.js(40B)
    --------intro.js(148B)
    --------utils.js(1KB)
    --------render.js(249B)
    ----node()
    --------_node.js(2KB)
    --------template-native.js(245B)
    --------template.js(238B)
    ----.npmignore(13B)
    ----demo()
    --------no-escape.html(549B)
    --------include.html(641B)
    --------compile.html(547B)
    --------index.html(691B)
    --------node-template-express.js(1KB)
    --------debug-syntax.html(349B)
    --------template-native()
    --------helper.html(2KB)
    --------node-template.js(1KB)
    --------print.html(378B)
    --------debug.html(394B)
    --------basic.html(612B)
    --------node-template()
    ----doc()
    --------syntax-native.md(2KB)
    --------syntax-simple.md(2KB)
    ----test()
    --------tpl()
    --------test-helper.html(1KB)
    --------test-xss.html(898B)
    --------js()
    --------test-speed.html(11KB)
    --------test-node.js(1KB)
    --------test-native.html(5KB)
    --------test.html(5KB)
    ----README.md(9KB)
    ----dist()
    --------template-native.js(4KB)
    --------template-debug.js(16KB)
    --------template.js(5KB)
    --------template-native-debug.js(13KB)
    ----package.json(575B)

网友评论