improve docs

This commit is contained in:
Leo Horie 2014-09-14 00:22:00 -04:00
parent 81fc994954
commit 8c3467b819
10 changed files with 171 additions and 9 deletions

View file

@ -1,5 +1,17 @@
## m.route
---
[Defining routes](#defining-routes)
[Variadic routes](#variadic-routes)
[Routes with querystrings](#routes-with-querystrings)
[Running clean up code on route change](#running-clean-up-code-on-route-change)
[Redirecting](#redirecting)
[Reading the currently active route](#reading-the-currently-active-route)
[Mode abstraction](#mode abstraction)
---
Routing is a system that allows creating Single-Page-Applications (SPA), i.e. applications that can go from a page to another without causing a full browser refresh.
It enables seamless navigability while preserving the ability to bookmark each page individually, and the ability to navigate the application via the browser's history mechanism.
@ -18,8 +30,6 @@ Routing is single-page-application (SPA) friendly, and can be implemented using
---
<a name="defining-routes"></a>
### Defining routes
#### Usage