Finch.js is a whole new take on handling routes in javascript web apps. It utilizes the natural hierarchy of routes, simplified pattern matching, and powerful parameter dependencies in order to speed up and organize web apps that rely highly on interecting with the browser's url.
First, Download Finch.js
Once you've gotten the files, simply include the javascript in your html <head/>> tags.
<!doctype html>
<html>
<head>
<script src="./scripts/finch.min.js" type="text/javascript" language="javascript"></script>
</head>
<body>
... Stuff here ...
</body>
</html>
Since Finch is a standalone library, this is all you'll need. From here, take a look at our website for more info on how to implement Finch.
Take a look at our website for the most up-to-date documention.
Finch is available for use under the MIT License
- Splats - Sometimes we might want an undetermined number of parameters at the end of a url, splats are useful for grabbing any number of url bindings and must be the last binding in the route pattern. Example: "/home/news/:variables..."
- pushState - Add pushstate support to finch so that we don't always need to rely on the hash