Skip to content
Myr

removed ejs layout.ejs from express(1)

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 b69199f · Browse files · 1 file+4 added−13 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−13 removed

  • other:+4 added−13 removed

1 file+4 added−13 removed

modified:bin/express+4 added-13 removed
76 unmodified lines
77 , ' p Welcome to #{title}'78].join('\r\n');7980/**81 * EJS layout template.81 * EJS index template.82 */8384var ejsLayout = [84var ejsIndex = [85 '<!DOCTYPE html>'86 , '<html>'87 , ' <head>'88 , ' <title><%= title %></title>'89 , ' <link rel=\'stylesheet\' href=\'/stylesheets/style.css\' />'90 , ' </head>'91 , ' <body>'92 , ' <%- body %>'92 , ' <h1><%= title %></h1>'93 , ' <p>Welcome to <%= title %></p>'94 , ' </body>'95 , '</html>'96].join('\r\n');9798/**98 * EJS index template.99 */100101var ejsIndex = [102 '<h1><%= title %></h1>'103 , '<p>Welcome to <%= title %></p>'104 ].join('\r\n');105106/**99 * JSHTML layout template.100 */101102var jshtmlLayout = [
153 unmodified lines
256257 mkdir(path + '/views', function(){258 switch (program.template) {259 case 'ejs':268 write(path + '/views/layout.ejs', ejsLayout);260 write(path + '/views/index.ejs', ejsIndex);261 break;262 case 'jade':263 write(path + '/views/layout.jade', jadeLayout);
96 unmodified lines