Skip to content

Commit 631058b

Browse files
committed
Merge pull request #122 from kevmo/gh-pages
Fix markdown - escape asterisk in "*splat".
2 parents 7c4ab21 + 0db0da7 commit 631058b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2011-01-27-what-is-a-router.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ _Notice the change in the url_
7878

7979
## Dynamic Routing Cont. ":params" and "*splats"
8080

81-
Backbone uses two styles of variables when implementing routes. First there are ":params" which match any URL components between slashes. Then there are "*splats" which match any number of URL components. Note that due to the nature of a "*splat" it will always be the last variable in your URL as it will match any and all components.
81+
Backbone uses two styles of variables when implementing routes. First there are ":params" which match any URL components between slashes. Then there are "\*splats" which match any number of URL components. Note that due to the nature of a "*splat" it will always be the last variable in your URL as it will match any and all components.
8282

8383
Any "*splats" or ":params" in route definitions are passed as arguments (in respective order) to the associated function. A route defined as "/:route/:action" will pass 2 variables (“route” and “action”) to the callback function. (If this is confusing please post a comment and I will try articulate it better)
8484

0 commit comments

Comments
 (0)