在浏览器和服务端使用art-template模板引擎
1. 在服务端使用art-template模板 安装 npm install art-template --save,在哪里使用npm命令就会安装在哪个目录下的node_modules中。使用步骤:(1) 首先新建一个文件存储html模板文件,tpl.html(2) 新建一个webServer文件要require("art-template")模块,启动服务,在浏览器访问该...
原创
2019-04-25 17:11:31 ·
557 阅读 ·
0 评论