Skip to content
Myr

haml working fine

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 976f5ca · Browse files · 1 file+15 added−15 removed
This commit

State

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

Diff stats

1 file+15 added−15 removed

  • tests:+15 added−15 removed

1 file+15 added−15 removed

modified:test/view.test.js+15 added-15 removed
131 unmodified lines
132 app.get('/jade', function(req, res){133 res.render('index', { layout: false });134 });135136 // app.get('/haml', function(req, res){137 // res.render('hello.haml', { layout: false });138 // });136 app.get('/haml', function(req, res){137 res.render('hello.haml', { layout: false });138 });139140 app.get('/callback/layout/no-options', function(req, res){141 res.render('hello.jade', function(err, str){142 assert.ok(!err);
7 unmodified lines
150 res.send(str.replace(':(', ':)'));151 });152 });153154 // app.get('/callback', function(req, res){155 // res.render('hello.haml', { layout: false }, function(err, str){156 // assert.ok(!err);157 // res.send(str.replace('Hello World', ':)'));158 // });159 // });154 app.get('/callback', function(req, res){155 res.render('hello.haml', { layout: false }, function(err, str){156 assert.ok(!err);157 res.send(str.replace('Hello World', ':)'));158 });159 });160161 app.get('/invalid', function(req, res){162 res.render('invalid.jade', { layout: false });163 });
29 unmodified lines
193 { body: '<p>Welcome</p>' });194 assert.response(app,195 { url: '/absolute' },196 { body: '<p>Welcome</p>' });197 // assert.response(app,198 // { url: '/haml' },199 // { body: '\n<p>Hello World</p>' });200 // assert.response(app,201 // { url: '/callback' },202 // { body: '\n<p>:)</p>' });197 assert.response(app,198 { url: '/haml' },199 { body: '\n<p>Hello World</p>' });200 assert.response(app,201 { url: '/callback' },202 { body: '\n<p>:)</p>' });203 assert.response(app,204 { url: '/callback/layout' },205 { body: '<html><body><p>:)</p></body></html>' });206 assert.response(app,207 { url: '/callback/layout/no-options' },
692 unmodified lines