on-rendered
Emit events when express start render and finish render.
Installation
This is a Node.js module available through the
npm registry. Installation is done using the
npm install
command:
$ npm install on-rendered -S
API
var onRender = app;
This will add the event render
to fire when template are rendered. And a
event beforeRender
add to template is ready to render.
Examples
var bodyParser = var cookieParser = var express = var onRender = // example of using this top-level; note the use of haltOnTimedout// after every middleware; it will stop the request flow on a timeoutvar app = appappapp app app