summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPreston Parry <ClimbsRocks@users.noreply.github.com>2015-01-04 23:11:43 -0800
committerPreston Parry <ClimbsRocks@users.noreply.github.com>2015-01-04 23:11:43 -0800
commit631058b4642b2c2c3a852d21d18413a1eafadd62 (patch)
treedc195e423752b4906de5bda5e25ff25c79f7d873
parent7c4ab21f9859b5378cb12ca0f2b44cd6cf36cba1 (diff)
parent0db0da74b51865413f69a41946d45bcdc6244799 (diff)
downloadbackbonetutorials-631058b4642b2c2c3a852d21d18413a1eafadd62.zip
backbonetutorials-631058b4642b2c2c3a852d21d18413a1eafadd62.tar.gz
backbonetutorials-631058b4642b2c2c3a852d21d18413a1eafadd62.tar.bz2
Merge pull request #122 from kevmo/gh-pages
Fix markdown - escape asterisk in "*splat".
-rw-r--r--_posts/2011-01-27-what-is-a-router.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/_posts/2011-01-27-what-is-a-router.md b/_posts/2011-01-27-what-is-a-router.md
index 7f19ab1..95f283a 100644
--- a/_posts/2011-01-27-what-is-a-router.md
+++ b/_posts/2011-01-27-what-is-a-router.md
@@ -78,7 +78,7 @@ _Notice the change in the url_
## Dynamic Routing Cont. ":params" and "*splats"
-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.
+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.
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)