Skip to content
Myr

Added as: this support

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 5544c5d · Browse files · 3 files+22 added−2 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+22 added−2 removed

  • tests:+13 added−0 removed
  • other:+9 added−2 removed

3 files+22 added−2 removed

modified:lib/express/view.js+9 added-2 removed
added:test/fixtures/partials/person.jade+1 added
1p= this.name
modified:test/view.test.js+12 added
104 unmodified lines
105 106 assert.response(app,107 { url: '/user' },108 { body: '<p>tj</p>' });109 110 // "as" this collection option111 app.get('/person', function(req, res){112 res.send(res.partial('person.jade', {113 as: this,114 collection: [{ name: 'tj' }]115 }));116 });117 118 assert.response(app,119 { url: '/person' },120 { body: '<p>tj</p>' });121 }122};