public/build/static/application.js
function(route, name) {
            var handler;
            if (_.isObject(route) && !_.isRegExp(route)) {
                _.each(route, function(callback, route) {
                    this.route(route, callback);
                }, this);
                return this;
            }

            handler = this[name];
            if (handler == null) {
                handler = function() {
                    var args = _.values(arguments);
                    args.unshift('route:'+name);
                    this.trigger.apply(this, args);
                };
            }

            /**
             * Router controller for this application
             *
             * @property router
             * @type {Router}
             */
            if (!this.router) this.router = new this.Router();
            this.router.route(route, name, _.bind(handler, this));
            return this;
        }
function(route, name) {
            var handler;
            if (_.isObject(route) && !_.isRegExp(route)) {
                _.each(route, function(callback, route) {
                    this.route(route, callback);
                }, this);
                return this;
            }

            handler = this[name];
            if (handler == null) {
                handler = function() {
                    var args = _.values(arguments);
                    args.unshift('route:'+name);
                    this.trigger.apply(this, args);
                };
            }

            /**
             * Router controller for this application
             *
             * @property router
             * @type {Router}
             */
            if (!this.router) this.router = new this.Router();
            this.router.route(route, name, _.bind(handler, this));
            return this;
        }
function ( route , name ) { var handler ; if ( _ . isObject ( route ) && ! _ . isRegExp ( route ) ) { _ . each ( route , function ( callback , route ) { this . route ( route , callback ) ; } , this ) ; return this ; } handler = this [ name ] ; if ( handler == null ) { handler = function ( ) { var args = _ . values ( arguments ) ; args . unshift ( 'route:' + name ) ; this . trigger . apply ( this , args ) ; } ; } /**
             * Router controller for this application
             *
             * @property router
             * @type {Router}
             */ if ( ! this . router ) this . router = new this . Router ( ) ; this . router . route ( route , name , _ . bind ( handler , this ) ) ; return this ; }
Add new route

@method route
@param {string} route regex or route string
@param {string} name method to use as a route callback
@return {string} page title
Add new route