使用文檔http://aui.github.io/art-template/koa/
語法文檔http://aui.github.io/art-template/zh-cn/docs/syntax.html
1.安裝
npm install art-template koa-art-template -S --registry=http://registry.npm.taobao.org
2.配置
render(app, {
root: path.join(__dirname, 'views'),
extname: '.html',
debug: process.env.NODE_ENV !== 'production'
});
3.渲染
await ctx.render('index', { title:'lqs' })