Permalink
Browse files

Remove layout.ejs.

  • Loading branch information...
1 parent d31eba6 commit 55ecd0e4ca819e6a0629e5c5fdc8eb4088403b5b @jaredhanson committed Aug 12, 2012
Showing with 5 additions and 12 deletions.
  1. +5 −12 lib/locomotive/cli/create.js
@@ -52,23 +52,18 @@ var pagesController = [
, ''
].join(eol);
-var layoutTemplate = [
+var mainTemplate = [
'<!DOCTYPE html>'
, '<html>'
, ' <head>'
, ' <title>Locomotive</title>'
, ' </head>'
, ' <body>'
- , ' <%- body %>'
+ , ' <h2>Welcome to <%= title %></h2>'
, ' </body>'
, '</html>'
, ''
-].join('\r\n');
-
-var mainTemplate = [
- '<h2>Welcome to <%= title %></h2>'
- , ''
-].join('\r\n');
+].join(eol);
var routesTemplate = [
'// Draw routes. Locomotive\'s router provides expressive syntax for drawing'
@@ -179,7 +174,7 @@ var packageJSON = [
, ' }'
, '}'
, ''
-].join('\r\n');
+].join(eol);
/**
@@ -204,9 +199,7 @@ function createApplicationAt(path) {
mkdir(path + '/app/controllers', function(){
write(path + '/app/controllers/pages_controller.js', pagesController);
});
- mkdir(path + '/app/views', function(){
- write(path + '/app/views/layout.ejs', layoutTemplate);
- });
+ mkdir(path + '/app/views');
mkdir(path + '/app/views/pages', function(){
write(path + '/app/views/pages/main.html.ejs', mainTemplate);
});

0 comments on commit 55ecd0e

Please sign in to comment.