Skip to content

Commit

Permalink
cleaned up main template
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-jonas committed Jan 1, 2013
1 parent 1c4c100 commit f937b9f
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 236 deletions.
2 changes: 1 addition & 1 deletion lib/templates/create/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>AssembleJS</title>
<title>My Project Name</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">

Expand Down
3 changes: 1 addition & 2 deletions lib/templates/create/app/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ require(
"utils/env",
"views/AppView",
"router",
"views/BaseView",
"plugins/ba-debug" // wraps console.log: debug.log( this, 'that', { the: 'other' } );,
], function($, _, Backbone, Handlebars, Env, AppView, AppRouter, BaseView){
], function($, _, Backbone, Handlebars, Env, AppView, AppRouter){

var router = new AppRouter({'appView': new AppView()}); // Create Application Router

Expand Down
34 changes: 11 additions & 23 deletions lib/templates/create/app/src/router.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
define([
'jquery',
'underscore',
'backbone',
'views/HeaderView',
'views/sections/HomeView'
], function($, _, Backbone, HeaderView, HomeView){
'backbone'
], function($, _, Backbone){

var AppRouter = Backbone.Router.extend({

routes: {
// Define routes here
'docs' : 'docs',
'contributors' : 'contributors',
'post/:id' : 'showPost',

// SAMPLE --------------------
// 'docs' : 'docs',
// 'contributors' : 'contributors',
// 'post/:id' : 'showPost',

// Default
'*actions' : 'home'
Expand All @@ -24,25 +24,13 @@ define([
var that = this;

this.appView = options.appView;

// permanent elements
this.headerView = new HeaderView({'vent': this.vent});
this.headerView.render();
$('#header').html(this.headerView.el);


},

home: function(){
var homeView = new HomeView({'vent': this.vent});
this.appView.showView(homeView);
$(document).attr('title', 'AssembleJS');
},

showPost: function(id){
// var post = posts.get(id);
// var postView = new PostView({model:post});
// this.appView.showView(postView);
// SAMPLE ------------------
// var homeView = new HomeView({'vent': this.vent});
// this.appView.showView(homeView);
// $(document).attr('title', 'AssembleJS');
}

});
Expand Down
14 changes: 0 additions & 14 deletions lib/templates/create/app/src/template/boilerplate_template.html

This file was deleted.

17 changes: 0 additions & 17 deletions lib/templates/create/app/src/template/header_template.html

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions lib/templates/create/app/src/template/sections/docs_template.html

This file was deleted.

10 changes: 0 additions & 10 deletions lib/templates/create/app/src/template/sections/home_template.html

This file was deleted.

53 changes: 0 additions & 53 deletions lib/templates/create/app/src/views/HeaderView.js

This file was deleted.

46 changes: 0 additions & 46 deletions lib/templates/create/app/src/views/boilerplate_view.js

This file was deleted.

50 changes: 0 additions & 50 deletions lib/templates/create/app/src/views/sections/HomeView.js

This file was deleted.

0 comments on commit f937b9f

Please sign in to comment.