artTemplate模板 js替换使用

时间:2018-07-20 11:42:56
【文件属性】:
文件名称:artTemplate模板 js替换使用
文件大小:313KB
文件格式:ZIP
更新时间:2018-07-20 11:42:56
artTemplate js 模板 artTemplate模板 js替换使用 ### 编写模板 使用一个``type="text/html"``的``script``标签存放模板: ### 渲染模板 var data = { title: '标签', list: ['文艺', '博客', '摄影', '电影', '民谣', '旅行', '吉他'] }; var html = template('test', data); document.getElementById('content').innerHTML = html;
【文件预览】:
artTemplate-master
----node()
--------_node.js(2KB)
--------template.js(238B)
--------template-native.js(245B)
----package.json(600B)
----test()
--------test-native.html(5KB)
--------tpl()
--------test.html(5KB)
--------test-node.js(1KB)
--------test-speed.html(11KB)
--------js()
--------test-helper.html(1KB)
--------test-xss.html(898B)
----dist()
--------template-native-debug.js(13KB)
--------template-debug.js(16KB)
--------template.js(5KB)
--------template-native.js(4KB)
----Gruntfile.js(3KB)
----src()
--------get.js(686B)
--------config.js(604B)
--------utils.js(1KB)
--------helper.js(255B)
--------onerror.js(510B)
--------renderFile.js(444B)
--------outro.js(250B)
--------compile.js(8KB)
--------intro.js(148B)
--------template.js(481B)
--------render.js(249B)
--------cache.js(40B)
--------syntax.js(3KB)
----.npmignore(13B)
----doc()
--------syntax-simple.md(2KB)
--------syntax-native.md(2KB)
----.gitignore(22B)
----demo()
--------debug-syntax.html(373B)
--------template-native()
--------print.html(378B)
--------node-template.js(1KB)
--------node-template()
--------basic.html(645B)
--------index.html(712B)
--------compile.html(573B)
--------include.html(672B)
--------helper.html(2KB)
--------debug.html(423B)
--------node-template-express.js(1KB)
--------no-escape.html(549B)
----README.md(9KB)

网友评论

  • 谢谢楼主,资源不错对我的帮助挺大的
  • 谢谢楼主,资源不错对我的帮助挺大的