storify/jade-browser — pull request #7 by grippy (2012-05-25 17:09:07+00:00)
Title: Refactored index.js to alternately perform static file caching

Refactored a few things and split up the functionality to also provide static file caching.

Module now exports three new methods:

#middleware
To be used as express/connect middleware (same as before).

#watch
A file watcher which watches for changes and then caches

#cache
Takes the compiled namespace template and writes it to disk