Skip to content
Myr

less verbose example apps when testing

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent 441b309 · Browse files · 2 files+3 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−7 removed

  • other:+3 added−7 removed

2 files+3 added−7 removed

modified:examples/auth/app.js+1 added-1 removed
modified:examples/mvc/index.js+2 added-6 removed
33 unmodified lines
3435 // expose "hasMessages"36 res.locals.hasMessages = !! msgs.length;3738 /*3940 This is equivalent:38 /* This is equivalent:4139 res.locals({40 messages: msgs,41 hasMessages: !! msgs.length42 });4643 */4445 // empty or "flush" the messages so they46 // don't build up47 req.session.messages = [];48});4950// log55app.use(express.logger('dev'));51if (!module.parent) app.use(express.logger('dev'));5253// serve static files54app.use(express.static(__dirname + '/public'));55
37 unmodified lines