Skip to content
Myr

Fixed index view resolution bug introduced by 1c2e9a476c50

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

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:lib/express/view.js+3 added-3 removed
192 unmodified lines
193 options.defaultEngine = app.settings['view engine'];194195 // Populate view196 // TODO: cache197 view = partial197 var orig = view = partial198 ? new Partial(view, options)199 : new View(view, options);200201 // Ensure view exists, otherwise try _ prefix
5 unmodified lines
207 208 // Ensure view _ prefix exists, otherwise try index209 if (!view.exists) {210 view = partial211 ? new Partial(view.indexPath, options)212 : new View(view.indexPath, options);211 ? new Partial(orig.indexPath, options)212 : new View(orig.indexPath, options);213 }214 215 // Dynamic helper support216 if (false !== options.dynamicHelpers) {
57 unmodified lines