useage
npm i --save maranda-koa2-nunjucks
for the complete maranda koa server case, with static, session-mysql, koabody, router
https://github.com/yu87109/maranda-koa-server-example
please visitthis example is used for ts, if you are js user, if can use as almost the same, just delete the type define.
app.ts
;; interface Ctx extends NunjucksCtx //if have other contextconst app = <any Ctx> noCache: true ;//if you do not want use NunjucksKoa, you use as follows:const app = <any Ctx>;appcontextnunjucks = noCache: true ; app