Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
pack your jades
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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');
});
Something went wrong with that request. Please try again.