node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป



Jade middleware to use with Component's builder.js

What it does

This will automatically register the Jade client side runtime and can be required with require('name/jade.runtime') where name is the name of the root component being built. The jade variable will not be global.

Any Jade templates will automatically be compiled and registered so that they can be required just like any script. The jade.runtime script will be required automatically for each jade template registered.


A lot of the code is from the example here