Permalink
Browse files

Added bootstrap and a whole lot of awesome to the generators

  • Loading branch information...
1 parent f6e0a76 commit b54dd2a50cd38bf3b713d2f4be57cf55c76379e5 Techwraith committed Feb 3, 2012
View
@@ -56,12 +56,10 @@ namespace('gen', function () {
, 'mkdir -p ./' + dir + '/config'
, 'mkdir -p ./' + dir + '/app/models'
, 'mkdir -p ./' + dir + '/app/controllers'
- , 'mkdir -p ./' + dir + '/app/views'
, 'mkdir -p ./' + dir + '/lib'
- , 'mkdir -p ./' + dir + '/public'
- , 'mkdir -p ./' + dir + '/public/js'
- , 'mkdir -p ./' + dir + '/public/css'
, 'mkdir -p ./' + dir + '/log'
+ , 'cp -r ' + templateDir + '/views ' + dir + '/app/'
+ , 'cp -r ' + templateDir + '/public ' + dir
, 'cp ' + templateDir + '/router.js ' + dir + '/config/'
, 'cp ' + templateDir + '/init.js ' + dir + '/config/'
, 'cp ' + templateDir + '/environment.js ' + dir + '/config/'
@@ -18,7 +18,10 @@
var Main = function () {
this.index = function (req, resp, params) {
- this.respond('Attention all planets of the Solar Federation');
+ this.respond(params, {
+ format: 'html'
+ , template: 'app/views/main/index'
+ });
};
};
Oops, something went wrong.

0 comments on commit b54dd2a

Please sign in to comment.