bee-line
A Simple hash based router which supports query strings
Documentation
This is a port of the simple-hash-router in ES5 syntax and includes the ability to have query strings.
Your links looks like this:
IndexAboutPage 2
You require the module.
var beeline = ;// or just include it in the head of the html // Then you attach a your favorite listener to the `beeline`beeline; // Then you define your routes. They have to be a list because the order// matters. beeline will trigger on the first matched route.beeline; // Lastly, you start it. When starting it, it will also trigger the approrpate// route even though the URL did not change.beelinestart;
404?
In case you link to an undefined route, it will notify registered functions
with a not-found
page name.
License
MIT.
Attribution
Original routing developed by Gorm Casper