jade-bro

Compile jade views plus runtime in a single module string

npm install jade-bro
2 downloads in the last month

jade-bro

Compile jade views plus runtime in a single module string

Usage

(using frequire)

Server:
var jadebro = require('jade-bro')
f.require('jade-bro', jadebro(__dirname + '/views'))
Browser:
var render = require('jade-bro')
render('some-view', { some: 'local' })
render.locals.foo = 'another'

API

Server:

moduleString = jadebro(app OR viewsPath)

Browser:

jadebro('viewName', { options })

Licence

MIT/X11

npm loves you