0.1.0 • Published 9 years ago

xtpl2 v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

xtpl2

a bundle module for xtpl & xtemplate

Feature 1

If we want to use xtpl, we also need to install xtemplate independent on package.json. xtpl2 just wrap both modules in one package.

Feature 2

Support koa in another way, like

var app = koa();
app.context.render = require('xtpl2').koaRender();
app.use(function*() {
    this.render('view', {});
});

actually xtpl is very good. this module just for neat freak, like me : ).