rincewind-watch
Watch rincewind views and trigger callbacks on change.
API
var watch =
watch(viewPaths, [opts], cb)
Pass in a single path string, an array of viewPaths or an object with named paths (e.g `{view: __dirname + '/view.html'}).
If opts.watch is false, don't watch for changes, only trigger callback once.
Returns a function which when called, stops watching and cleans up.
Example
Automatically compile views to javascript when they are changed
var watch = var fs = var viewRoot = __dirname + '/views' { var results = Object return 'var View = require("rincewind"); module.exports = {' + results + '}'}