$.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!");
}
}
);