express-jade-cache-helper
express helper that caches all .jade files to memory on startup
Install
$ npm install --save express-jade-cache-helper
Usage
Below is a example of usage.
var express = ;var jadeCacheHelper = ; var app = ;var indexApp = ; indexApp;indexApp;indexApp; app; // <= important partapp;
API
jadeCacheHelper(expressApp, options)
:
- expressApp: express app, important: it needs to fire
'mount'
event - options:
- jadeExt: Template file name extension (default
'.jade'
)
- jadeExt: Template file name extension (default
Options
Use DEBUG=ejch:cache
to debug with debug.