node package manager

jade-bro

Compile jade views plus runtime in a single module string

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')
var html = render('some-view', { some: 'local' })
render.locals.foo = 'another'
el.innerHTML = html

API

Server:

moduleString = jadebro(app OR viewsPath)

Browser:

html = jadebro('viewName', { options })

Licence

MIT/X11