Skip to content
Myr

add cache view partials

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

authored by Aaron Heckmann · committed by Aaron Heckmann · parent 33277c3 · Browse files · 3 files+29 added−4 removed
This commit

State

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

Diff stats

3 files+29 added−4 removed

  • tests:+8 added−0 removed
  • other:+21 added−4 removed

3 files+29 added−4 removed

modified:lib/express/plugins/view.js+20 added-4 removed
modified:lib/express/core.js+1 added
341 unmodified lines
342})343344configure('production', function(){345 enable('cache view contents')346 enable('cache view partials')347 enable('cache static files')348})
modified:spec/spec.plugins.view.js+8 added
10 unmodified lines
11 set('views').should.eql 'spec/views'12 end13 end14 15 describe 'set("partials")'16 it 'should default to <root>/views/partials'17 set('root', 'spec')18 set('partials').should.eql 'spec/views/partials'19 end20 end21 22 describe '#partial()'23 before_each24 set('views', 'spec/fixtures')25 set('partials', 'spec/fixtures/partials')26 end27 28 describe 'given a valid view name'29 it 'should render a partial'
169 unmodified lines