Skip to content
Myr

Fixed express(1) LF -> CRLF for windows. Closes #875

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 04389fd · Browse files · 1 file+12 added−12 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+12 added−12 removed

  • other:+12 added−12 removed

1 file+12 added−12 removed

modified:bin/express+12 added-12 removed
47 unmodified lines
48 , ''49 , 'exports.index = function(req, res){'50 , ' res.render(\'index\', { title: \'Express\' })'51 , '};'52].join('\n');52].join('\r\n');5354/**55 * Jade layout template.56 */
4 unmodified lines
61 , ' head'62 , ' title= title'63 , ' link(rel=\'stylesheet\', href=\'/stylesheets/style.css\')'64 , ' body!= body'65].join('\n');65].join('\r\n');6667/**68 * Jade index template.69 */7071var jadeIndex = [72 'h1= title'73 , 'p Welcome to #{title}'74].join('\n');74].join('\r\n');7576/**77 * EJS layout template.78 */
8 unmodified lines
87 , ' <body>'88 , ' <%- body %>'89 , ' </body>'90 , '</html>'91].join('\n');91].join('\r\n');9293/**94 * EJS index template.95 */9697var ejsIndex = [98 '<h1><%= title %></h1>'99 , '<p>Welcome to <%= title %></p>'100 ].join('\n');100 ].join('\r\n');101102/**103 * JSHTML layout template.104 */
8 unmodified lines
113 , ' <body>'114 , ' @write(body)'115 , ' </body>'116 , '</html>'117].join('\n');117].join('\r\n');118119/**120 * JSHTML index template.121 */122123var jshtmlIndex = [124 '<h1>@write(title)</h1>'125 , '<p>Welcome to @write(title)</p>'126 ].join('\n');126 ].join('\r\n');127128/**129 * Default css template.130 */
6 unmodified lines
137 , ''138 , 'a {'139 , ' color: #00B7FF;'140 , '}'141].join('\n');141].join('\r\n');142143/**144 * Default less template.145 */
6 unmodified lines
152 , ''153 , 'a {'154 , ' color: #00B7FF;'155 , '}'156].join('\n');156].join('\r\n');157158/**159 * Default stylus template.160 */
3 unmodified lines
164 , ' padding: 50px'165 , ' font: 14px "Lucida Grande", Helvetica, Arial, sans-serif'166 , 'a'167 , ' color: #00B7FF'168].join('\n');168].join('\r\n');169170/**171 * App template.172 */
33 unmodified lines
206 , 'http.createServer(app).listen(3000);'207 , ''208 , 'console.log("Express server listening for connections");'209 , ''210].join('\n');210].join('\r\n');211212// Generate application213214(function createApplication(path) {
66 unmodified lines
281282 // CSS Engine support283 switch (program.css) {284 case 'stylus':285 app = app.replace('{css}', '\n app.use(require(\'stylus\').middleware({ src: __dirname + \'/public\' }));');285 app = app.replace('{css}', '\r\n app.use(require(\'stylus\').middleware({ src: __dirname + \'/public\' }));');286 break;287 default:288 app = app.replace('{css}', '');289 }
78 unmodified lines