$ npm install streamstache-cacheA simple filesystem cache for streamstache.
var Cached = require('streamstache-cache');
var tpl = Cached(__dirname + '/simple.html');
http.createServer(function(req, res) {
tpl({ foo: 'bar' }).pipe(res);
});
Return a function that takes an optional scope and returns a new streamstache instance for the template under path.
The initial caching is done using a fs.readFileSync, so always create the cache at bootup time.
With npm do:
npm install streamstache-cache
MIT