Chaplin, an Application Architecture based on Backbone.js(9elements.com) |
Chaplin, an Application Architecture based on Backbone.js(9elements.com) |
We dropped the Backbone.Router completely, but Backbone.History in turn is quite decent for HTML5 history and hashchange handling, so we’re relying on that.
Of course we could have borrowed only the code from Backbone we might need, but I think in the long run it’s a good idea to build upon an existing library or framework which is actively maintained, even if it doesn’t provide everything you might need at the moment. So writing all code ourselves wasn’t really an option for us.