Skip to content
Myr

Added partial collection support

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

authored by visionmedia · committed by visionmedia · parent 346f019 · Browse files · 2 files+25 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

2 files+25 added−1 removed

  • tests:+10 added−0 removed
  • other:+15 added−1 removed

2 files+25 added−1 removed

modified:lib/express/plugins/view.js+15 added-1 removed
modified:spec/spec.plugins.view.js+10 added
24 unmodified lines
25 get('/').body.should.include '<ul>'26 get('/').body.should.include '<li>foo'27 get('/').body.should.include '<li>bar'28 end29 30 it 'should render collections'31 get('/', function(){32 return this.partial('item.haml.html', {33 collection: ['foo', 'bar']34 })35 })36 get('/').body.should.include '<li>foo'37 get('/').body.should.include '<li>bar'38 end39 end40 end41 42 describe '#render()'
137 unmodified lines