A simple browserify transform for turning .jade files into template functions
var template = ;documentinnerHTML =;
Dead simple. When creating your browserify bundle, just add this line:
or if you are a command line cowboy, something along the lines of
browserify -t simple-jadeify entryjs -o bundlejs
Note that this project peer-depends on Jade and each template will do
require("jade/runtime"), so everything will just
work: there's no need to add any Jade-related stuff to your bundle manually.
So yeah, now
.jade files will give you back a template function. Have fun!