DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • static.routes
  • / On this page
    • static.routes

      property

      A list of routes recognized by the router indixed by the url used to add it. Each route is an object with these members:

      • source

      Object

      • test - A regular expression that will match the route when variable values are present; i.e. for {page}/{type} the RegExp is /([\w.])/([\w.])/ which will match for any value of {page} and {type} (word chars or period).

      • route - The original URL, same as the index for this entry in routes.

      • names - An array of all the variable names in this route

      • defaults - Default values provided for the variables or an empty object.

      • length - The number of parts in the URL separated by '/'.

      CanJS is part of DoneJS. Created and maintained by the core DoneJS team and Bitovi. Currently 3.0.0.