pack your jades
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
.gitignore
README.md
index.coffee
index.js
package.json
test.js

README.md

jadepacker

pack your jades before delivering!

Usage

Add it into your package.json

npm install jadepacker --save

Call it in a Makefile or something

.... other compilation steps
node_modules/jadepacker/bin/jadepacker --input views --output views_jades
....

Hack into your expressjs server

var jades = require('jadepacker')(__dirname + '/views_jades');

...

app.use(jades.__express);

or do rendering maunually

app.get('/', function(req, res, next){
  // cool stuff here
  // ...
  jades.expressRender(res, 'index');
});