Skip to content

v0.7.0

Latest
Compare
Choose a tag to compare
@jwilm jwilm released this 23 Jan 18:12
· 45 commits to master since this release

Features

Add support for koa state

app.get('/path', function *() {
this.state = {foo: 'bar'};
// this.state is used as locals for template render
yield this.render('template');

Add disableCache option

Pass disableCache: true in your options to cause templates to be reloaded each render.