Skip to content

Instantly share code, notes, and snippets.

@gilem
gilem / teambox-breadfish.js
Created January 30, 2013 20:19
teambox sample
(function () {
// Initialize a basic Teambox app
Teambox.Apps.BreadFish = Teambox.BaseApp.extend({});
// Router to handle paths (in this case, /#!/breadfish) with regular links
Teambox.Apps.BreadFish.Controller = Teambox.Controllers.BaseController.extend({
routes: { '!/breadfish' : 'index' },
index: function () {
// Helper Teambox function to highlight the sidebar
Teambox.Views.Sidebar.highlightSidebar('breadfish_link');