Skip to content
Myr

Style fixes

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 bb6164e · Browse files · 2 files+5 added−5 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+5 added−5 removed

  • tests:+3 added−3 removed
  • other:+2 added−2 removed

2 files+5 added−5 removed

modified:lib/express/view.js+2 added-2 removed
232 unmodified lines
233 if (typeof layout === 'string' && layout.indexOf('.') < 0) {234 layout += ext;235 }236237 // Normalize "context" to "scope"238 options.scope = (options.scope || options.context) || this;237 // Normalize "context" to "scope", defaulting to this response238 options.scope = options.scope || options.context || this;239240 // Auto-cache in production241 if (this.app.set('env') === 'production') {242 options.cache = true;
70 unmodified lines
modified:test/view.test.js+3 added-3 removed
6 unmodified lines
7 connect = require('connect'),8 view = require('express/view');910var create = function(){11 var app = express.createServer.apply(express, arguments);12 app.set('views', __dirname + '/fixtures');13 return app;11 var app = express.createServer.apply(express, arguments);12 app.set('views', __dirname + '/fixtures');13 return app;14};1516module.exports = {17 'test #render()': function(assert){
297 unmodified lines