URL routing plugin
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
sample
src
README.md

README.md

URL routing jQuery plugin


usage

$.route(
  {
    //always match
    //http://example.com/foo/bar/baz.html
    path: /./,
    func: function() {
      console.log("always match!");
    }
  },

  {
    //url contains /sample/index.html
    //http://example.com/foo/bar/sample/index.html
    path: /\/sample\/index\.html/,
    func: function() {
      console.log("sample page!");
    }
  }
);