Permalink
Browse files

Add more links

  • Loading branch information...
1 parent a228bdc commit fd41093ab5af37317b791fda50522e2180c5ca64 @rstacruz committed Jan 4, 2016
Showing with 9 additions and 6 deletions.
  1. +8 −3 docs/bootstrapping-data.md
  2. +0 −1 docs/inline-templates.md
  3. +0 −1 docs/jst-templates.md
  4. +1 −1 package.json
@@ -55,14 +55,16 @@ collection of your server-side models.
</script>
```
-On Rails, you may need to use the `.html_safe` method.
+On Rails, you may need to use the [.html_safe][] method.
``` html
<script>
App.photos = new Photos(<%= @photos.to_json.html_safe %>);
</script>
```
+[.html_safe]: http://api.rubyonrails.org/classes/ActiveSupport/SafeBuffer.html
+
## In Ruby (HAML)
If you use HAML, you will need use a syntax similar to this.
@@ -74,7 +76,7 @@ If you use HAML, you will need use a syntax similar to this.
## In PHP
-In your server-side templates, you will probably be using `json_encode()` on a
+In your server-side templates, you will probably be using [json_encode()][] on a
collection of your server-side models.
``` php
@@ -83,9 +85,11 @@ collection of your server-side models.
</script>
```
+[json_encode()]: http://php.net/manual/en/function.json-encode.php
+
## In C# (Razor)
-In your Razor view, you may parse your server side models into JSON using `Json.Encode()`.
+In your Razor view, you may parse your server side models into JSON using [Json.Encode()][].
```
<script>
@@ -94,3 +98,4 @@ In your Razor view, you may parse your server side models into JSON using `Json.
```
[bb.bootstrap]: http://documentcloud.github.com/backbone/#FAQ-bootstrap
+[Json.Encode()]: https://msdn.microsoft.com/en-us/library/system.web.helpers.json(v%3Dvs.111).aspx
@@ -78,4 +78,3 @@ browser unnecessarily. Consider using JST templates instead.
Note that the given example assumes that the `#template-contact` element appears
before you include JavaScript files, as it requires the template element to be
accessible before the class is defined.
-
@@ -58,4 +58,3 @@ var html = JST['person/contact'](dict);
[jammit]: http://documentcloud.github.com/jammit
[sprockets]: http://getsprockets.org
[sinatra-backbone]: http://ricostacruz.com/sinatra-backbone
-
View
@@ -1,6 +1,6 @@
{
"name": "backbone-patterns",
- "version": "1.0.0",
+ "version": "1.0.1",
"description": "Here, I try to document the good practices that our team has learned along the way building [Backbone][bb] applications.",
"main": "index.js",
"directories": {

0 comments on commit fd41093

Please sign in to comment.