Skip to content

Instantly share code, notes, and snippets.

@gsmcwhirter
Created December 14, 2011 01:17
Show Gist options
  • Save gsmcwhirter/1474767 to your computer and use it in GitHub Desktop.
Save gsmcwhirter/1474767 to your computer and use it in GitHub Desktop.
window.App = Ember.Application.create({});
document.title = "Olp Contracting";
// Routes
App.Router = {
project_index: function (){
document.title = "Projects";
App.ProjectView.append();
},
invoice_index: function (){
document.title = "Invoices";
}
};
Ember.routes.add('', App, App.Router.project_index);
Ember.routes.add('!/projects', App, App.Router.project_index);
Ember.routes.add('!/invoices', App, App.Router.invoice_index);
// Views
App.ProjectView = Ember.View.extend({
templateName: "projects"
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment