#= require_self #= require_tree ./templates #= require_tree ./models #= require_tree ./views #= require_tree ./routers window.Pilot = Models: {} Collections: {} Routers: {} Views: {} $ -> new App.Routers.Router # Enable pushState for compatible browsers enablePushState = true # Disable for older browsers pushState = !!(enablePushState && window.history && window.history.pushState) Backbone.history.start({ pushState: pushState })