koa-lite/examples/blog/lib/render.js

13 lines
206 B
JavaScript
Raw Normal View History

2013-11-28 05:40:00 +00:00
/**
* Module dependencies.
*/
var views = require('co-views');
// setup views mapping .html
// to the swig template engine
module.exports = views(__dirname + '/../views', {
map: { html: 'swig' }
});