Skip to content

Siedrix/yet-another-nunjucks-koa-render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'}) )

About

Allows nunjucks templates to koa 2.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published