Skip to content
Myr

Added view index template support

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

  • other:+9 added−2 removed

2 files+9 added−2 removed

modified:lib/express/view/view.js+2 added-2 removed
modified:lib/express/view.js+7 added
196 unmodified lines
197 view = partial198 ? new Partial(view, options)199 : new View(view, options);200201 // Ensure view exists, otherwise try index202 if (!view.exists) {203 view = partial204 ? new Partial(view.indexPath, options)205 : new View(view.indexPath, options);206 }207208 // Dynamic helper support209 if (false !== options.dynamicHelpers) {210 // cache211 if (!this.__dynamicHelpers) {
55 unmodified lines