Skip to content
Myr

Added partial "as" option

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

authored by visionmedia · committed by visionmedia · parent 60d3145 · Browse files · 3 files+14 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

3 files+14 added−1 removed

  • tests:+12 added−0 removed
  • other:+2 added−1 removed

3 files+14 added−1 removed

modified:lib/express/plugins/view.js+2 added-1 removed
added:spec/fixtures/partials/video.haml.html+1 added
modified:spec/spec.plugins.view.js+11 added
34 unmodified lines
35 })36 get('/').body.should.include '<li>foo'37 get('/').body.should.include '<li>bar'38 end39 40 it 'should render collections with a given object name'41 get('/', function(){42 return this.partial('video.haml.html', {43 collection: ['im a movie', 'im another movie'],44 as: 'vid'45 })46 })47 get('/').body.should.include '<li>im a movie'48 get('/').body.should.include '<li>im another movie'49 end50 end51 end52 53 describe '#render()'
137 unmodified lines