Skip to content
Myr

Generated app using "view engine" "jade"

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 48481a7 · Browse files · 1 file+4 added−3 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+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:bin/express+4 added-3 removed
82 unmodified lines
83 , " assert.response(app,"84 , " { url: '/' },"85 , " { status: 200, headers: { 'Content-Type': 'text/html; charset=utf-8' }},"86 , " function(res){"87 , " assert.includes(res.body, '<title>Express</title>');"87 , " assert.includes(res.body, '<title>Express</title>');"88 , " });"89 , " }"90 , "};"91].join('\n');
15 unmodified lines
107 , '// Configuration'108 , ''109 , 'app.configure(function(){'110 , ' app.set(\'views\', __dirname + \'/views\');'111 , ' app.set(\'view engine\', \'jade\');'112 , ' app.use(express.bodyDecoder());'113 , ' app.use(express.methodOverride());'114 , ' app.use(express.compiler({ src: __dirname + \'/public\', enable: [\'less\'] }));'115 , ' app.use(app.router);'
10 unmodified lines
126 , ''127 , '// Routes'128 , ''129 , 'app.get(\'/\', function(req, res){'129 , ' res.render(\'index.jade\', {'130 , ' res.render(\'index\', {'131 , ' locals: {'131 , ' title: \'Express\''132 , ' title: \'Express\''133 , ' }'134 , ' });'135 , '});'136 , ''
156 unmodified lines