Skip to content
Myr

misc refactor

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 d7488bb · Browse files · 1 file+3 added−10 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−10 removed

  • other:+3 added−10 removed

1 file+3 added−10 removed

modified:lib/view.js+3 added-10 removed
220 unmodified lines
221 // "view engine" setting222 options.defaultEngine = app.set('view engine');223224 // Populate view225 // TODO: move this logic into the protos225 var orig = view = new View(view, options);226227 // Ensure view exists, otherwise try _ prefix229 if (!view.exists) {230 view = new View(view.prefixPath, options);231 }228 if (!view.exists) view = new View(view.prefixPath, options);229 230 // Ensure view _ prefix exists, otherwise try index234 if (!view.exists) {235 view = new View(orig.indexPath, options);236 }231 if (!view.exists) view = new View(orig.indexPath, options);232233 // Ensure view exists, or try ../index239 if (!view.exists && !options.isLayout) {240 view = new View(orig.upIndexPath, options);241 }234 if (!view.exists && !options.isLayout) view = new View(orig.upIndexPath, options);235236 // Dynamic helper support237 if (false !== options.dynamicHelpers) {238 // cache
56 unmodified lines