Skip to content
Myr

misc refactoring

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 4b4de29 · Browse files · 1 file+3 added−6 removed
This commit

State

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

Diff stats

1 file+3 added−6 removed

  • other:+3 added−6 removed

1 file+3 added−6 removed

modified:lib/view.js+3 added-6 removed
239 unmodified lines
240 , app = this.app241 , helpers = app.viewHelpers242 , dynamicHelpers = app.dynamicViewHelpers243 , viewOptions = app.set('view options')244 , cacheViews = app.set('cache views');244 , cacheViews = app.set('cache views')245 , root = app.set('views') || process.cwd() + '/views';246247 // merge "view options"248 if (viewOptions) merge(options, viewOptions);249
8 unmodified lines
258259 // status support260 if (options.status) this.statusCode = options.status;261261 // Defaults262 var self = this263 , root = app.set('views') || process.cwd() + '/views'264 , partial = options.renderPartial262 var partial = options.renderPartial263 , layout = options.layout;264265 // Layout support266 if (true === layout || undefined === layout) {
14 unmodified lines
281282 // charset option283 if (options.charset) this.charset = options.charset;284287285 // Dynamic helper support286 if (false !== options.dynamicHelpers) {287 // cache288 if (!this.__dynamicHelpers) {
99 unmodified lines