Permalink
Browse files

removed ejs layout.ejs from express(1)

  • Loading branch information...
1 parent b69199f commit d72a6666a1a5fa94a0f0a83b865e062239ecd9ae @tj tj committed Dec 17, 2011
Showing with 4 additions and 13 deletions.
  1. +4 −13 bin/express
View
@@ -78,31 +78,23 @@ var jadeIndex = [
].join('\r\n');
/**
- * EJS layout template.
+ * EJS index template.
*/
-var ejsLayout = [
+var ejsIndex = [
'<!DOCTYPE html>'
, '<html>'
, ' <head>'
, ' <title><%= title %></title>'
, ' <link rel=\'stylesheet\' href=\'/stylesheets/style.css\' />'
, ' </head>'
, ' <body>'
- , ' <%- body %>'
+ , ' <h1><%= title %></h1>'
+ , ' <p>Welcome to <%= title %></p>'
, ' </body>'
, '</html>'
].join('\r\n');
-/**
- * EJS index template.
- */
-
-var ejsIndex = [
- '<h1><%= title %></h1>'
- , '<p>Welcome to <%= title %></p>'
- ].join('\r\n');
-
/**
* JSHTML layout template.
*/
@@ -265,7 +257,6 @@ function createApplicationAt(path) {
mkdir(path + '/views', function(){
switch (program.template) {
case 'ejs':
- write(path + '/views/layout.ejs', ejsLayout);
write(path + '/views/index.ejs', ejsIndex);
break;
case 'jade':

0 comments on commit d72a666

Please sign in to comment.