Represents the base url that pushstate will prepend to all
routes. root defaults to: "/".
Use
By default, a route like:
can.route(":type/:id")
Matches urls like:
http://domain.com/contact/5
But sometimes, you only want to match pages within a certain directory. For
example, an application that is a filemanager. You might want to
specify root and routes like:
Use
By default, a route like:
Matches urls like:
But sometimes, you only want to match pages within a certain directory. For example, an application that is a filemanager. You might want to specify root and routes like:
Which matches urls like: