Skip to content

Instantly share code, notes, and snippets.

@jonohayon
Created November 25, 2015 05:53
Show Gist options
  • Save jonohayon/ed1b883de278689a705b to your computer and use it in GitHub Desktop.
Save jonohayon/ed1b883de278689a705b to your computer and use it in GitHub Desktop.
jQuery Router Documentation

#jQuery Router

##Initialize the router

$(document).initRouter({ errPath: <error view path> })

##Create a new route:

$(document).createRoute({
  templatePath: <view path; html>,
  path: <path after the #! in url>,
  controller: <function, no params; will execute after loading of the view>
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment