Skip to content
Myr

Namespacing View caches with "view:"

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

authored by visionmedia · committed by visionmedia · parent db46011 · Browse files · 2 files+4 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

2 files+4 added−4 removed

  • tests:+1 added−1 removed
  • other:+3 added−3 removed

2 files+4 added−4 removed

modified:lib/express/plugins/view.js+3 added-3 removed
modified:spec/spec.plugins.view.js+1 added-1 removed
78 unmodified lines
79 get('/', function(){80 this.render('hello.haml.html')81 })82 get('/cached', function(){83 return this.cache.get('spec/fixtures/hello.haml.html') ? 'yes' : 'no'83 return this.cache.get('view:spec/fixtures/hello.haml.html') ? 'yes' : 'no'84 })85 get('/cached').body.should.eql 'no'86 get('/')87 get('/cached').body.should.eql 'yes'
62 unmodified lines