Skip to content
Myr

Fixed uncached templates in development

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 51be169 · Browse files · 2 files+3 added−5 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+3 added−5 removed

  • other:+3 added−5 removed

2 files+3 added−5 removed

modified:lib/express/view/view.js+1 added-2 removed
modified:lib/express/view.js+2 added-3 removed
232 unmodified lines
233234 // Attempt render235 try {236 var engine = view.templateEngine237 , contents = view.contents237 , template = cacheTemplates239 ? cache[view.path] || (cache[view.path] = engine.compile(contents, options))240 : engine.compile(contents, options);238 ? cache[view.path] || (cache[view.path] = engine.compile(view.contents, options))239 : engine.compile(view.contents, options);240 str = template.call(options.scope, options);241 } catch (err) {242 return error(err);243 }
16 unmodified lines