Skip to content
Myr

Added View#upIndexPath

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 92967d3 · Browse files · 2 files+19 added−1 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+19 added−1 removed

  • other:+19 added−1 removed

2 files+19 added−1 removed

modified:lib/view/view.js+11 added
modified:lib/view.js+8 added-1 removed
214 unmodified lines
215 // "view engine" setting216 options.defaultEngine = app.set('view engine');217218 // Populate view219 // TODO: cache219 // TODO: move this logic into the protos220 var orig = view = partial221 ? new Partial(view, options)222 : new View(view, options);223
9 unmodified lines
233 view = partial234 ? new Partial(orig.indexPath, options)235 : new View(orig.indexPath, options);236 }237238 // Ensure view path exists otherwise try ../name239 if (!view.exists) {240 view = partial241 ? new Partial(orig.upIndexPath, options)242 : new View(orig.upIndexPath, options);243 }244 245 // Dynamic helper support246 if (false !== options.dynamicHelpers) {247 // cache
56 unmodified lines