yet-another-nunjucks-koa-render
Allows nunjucks templates to koa 2.0
Last updated 7 months ago by siedrix .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install yet-another-nunjucks-koa-render 
SYNC missed versions from official npm registry.

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'}) )
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 3
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |