1.1.1 • Published 7 years ago

yet-another-nunjucks-koa-render v1.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

yet-another-nunjucks-koa-render

Allows nunjucks templates to koa 2.0

Create you nunjucks env and pass it to the render. It will be added to Koa

const Koa = require('koa')
const nunjucks = require('nunjucks')
const render = require('yet-another-nunjucks-koa-render')

const server = new Koa()

app.use( render(nunjucks.configure('./views'), {ext:'.html'}) )
1.1.1

7 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.9.0

8 years ago