Skip to content
Myr

Added isLayout property

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Aid introspection for another project I am working on

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent b819366 · Browse files · 1 file+1 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+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:lib/express/view.js+1 added
251 unmodified lines
252 // Layout support253 if (layout) {254 options.layout = false;255 options.locals.body = str;256 options.isLayout = true;257 self.render(layout, options, fn);258 } else if (partial) {259 return str;260 } else if (fn) {
5 unmodified lines