Skip to content
Myr

Fixed partial lookup precedence. Closes #631

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 53d4da2 · Browse files · 1 file+4 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

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:lib/view.js+4 added-1 removed
337 unmodified lines
338 } else {339 var orig = view = new View(view, options);340341 // Try _ prefix ex: ./views/_<name>.jade342 if (partial) {342 if (!view.exists) view = new View(orig.prefixPath, options);343 view = new View(orig.prefixPath, options);344 if (!view.exists) view = orig;345 }346 347 // Try index ex: ./views/user/index.jade348 if (!view.exists) view = new View(orig.indexPath, options);349
68 unmodified lines