page.js
Micro client-side router inspired by the Express router
...Calling page.redirect with only a string as the first parameter redirects to another route. Waits for the current route to push state and after replaces it with the new one leaving the browser history clean. If you're doing selective binding you'll like want to pass { click: false } to specify this yourself. Exit routes are called when a page changes, using the context from the previous change. Create a new page instance with the given options. Use this if you need to control multiple windows (like iframes or popups) in addition to the main window. The router uses the same string-to-regexp conversion that Express does, so things like ":id", ":id?"...