Skip to content

Commit be4a6a6

Browse files
committed
Escaped all asterisks within text
1 parent 631058b commit be4a6a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ Most conventional frameworks allow you to define routes that contain a mix of st
7676
_Notice the change in the url_
7777

7878

79-
## Dynamic Routing Cont. ":params" and "*splats"
79+
## 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

83-
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)
83+
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

8585
Here are some examples of using ":params" and "*splats"
8686

0 commit comments

Comments
 (0)