Skip to content
Myr

fixed template caching

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 884d40f · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/express/view.js+1 added-1 removed
227 unmodified lines
228 try {229 var engine = view.templateEngine230 , contents = view.contents231 , template = cacheTemplates232 ? cache[view] || (cache[view] = engine.compile(contents, options))232 ? cache[view.path] || (cache[view.path] = engine.compile(contents, options))233 : engine.compile(contents, options);234 str = template.call(options.scope, options);235 } catch (err) {236 return error(err);
16 unmodified lines