siren-views
Template rendering middleware for koa, modified from koa-views:
- instead of
ctx.locals
, we usectx.state
to store template context. return yield *next
ifctx.render
exists (no matter what the type is).
Example
var koa = ;var views = ; var app = ; app; app;
API
Please refer to koa-views.
Tests
Tests use mocha and can be run with npm:
npm test