xtpl2

0.1.0 • Public • Published

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 : ).

/xtpl2/

    Package Sidebar

    Install

    npm i xtpl2

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • threeday0905