Skip to content
A simple but powerful route listener library
Pull request Compare This branch is 17 commits behind stoodder:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
coffee
scripts
tests
.DS_Store
.gitignore
Gruntfile.coffee
LICENSE.md
README.md
bower.json
finch.js
finch.min.js
package.json

README.md

Finch.js

Powerfully Simple Javascript Routing

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.

Installation

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.

Documentation

Take a look at our website for the most up-to-date documention.

Licenese

Finch is available for sue under the MIT License

TODO List

  • 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 ot finsh so that we don't always need to rely on the hash
Something went wrong with that request. Please try again.