1.art-template简介
art-template 是一个简约、超快的模板引擎。关于更多的可以参考他的中文官网:http://aui.github.io/art-template/zh-cn/index.index
市面上常见的模板引擎比较
2. art-template的安装
在浏览器中访问http://aui.github.io/art-template/zh-cn/docs/installation.html页面,找到链接后,鼠标右键,选择为“链接另存为”,将art-template下载到本地。
3.art-template模板引擎的基本使用
3.1.art-template的使用步骤
1.导入art-template
2.定义数据
3.定义模板
4.调用 template 函数
5.渲染HTML页面