在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:aui/koa-art-template开源软件地址:https://github.com/aui/koa-art-template开源编程语言:JavaScript 91.7%开源软件介绍:koa-art-templateKoa art-template view render middleware. support all feature of art-template. Installnpm install --save art-template
npm install --save koa-art-template UsageExampleconst Koa = require('koa');
const render = require('koa-art-template');
const app = new Koa();
render(app, {
root: path.join(__dirname, 'view'),
extname: '.art',
debug: process.env.NODE_ENV !== 'production'
});
app.use(async function (ctx) {
await ctx.render('user');
});
app.listen(8080); Or you can checkout the example. OptionsSupports art-template options. StateSupport |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论