Jade middleware to use with components builder.js
This will automatically register the Jade client side runtime and can be required with
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