Skip to content
Myr

Normalizing view context option to scope

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

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:lib/express/view.js+3 added
219 unmodified lines
220 layout = layout === true221 ? 'layout' + ext222 : layout;223224 // Normalize "context" to "scope"225 options.scope = options.scope || options.context;226227 // Auto-cache in production228 if (this.app.set('env') === 'production') {229 options.cache = true;230 }
68 unmodified lines