bw-router
bw-router
will allow you to create routes and associate them with a value/object. These values are called
sections as this router was originally designed for bigwheel.
If the this module is running in the browser it will use window.location.hash
to evaluate routes. If it's not
running in an environment where window.location
exists then it will be ignored.
Usage
Example
var bwRouter = ; var router = ; router; // calling init will start resolving routes router; // calling go will cause the router to evaluate router; // will not trigger a section change, useful for scrolling sites router; // will destroy the router
License
MIT, see LICENSE for details.