express-flash = function () { return function (req, res, next) { connectFlash(req, res, function () { // Proxy the render function so that the flash is // retrieved right before the render function is executed var render = res.render; res.render = function () { // attach flash messages to res.locals.messages res.locals.messages = req.flash(); render.apply(res, arguments); } next(); }) }; }
n/a