Skip to content

Commit 0297a4d

Browse files
committed
[doc] fix typo
1 parent 213ead7 commit 0297a4d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Resources/doc/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ add the two JavaScript files above loaded at some point in your web page.
7676
7777
It's as simple as calling:
7878
79-
```javascript
79+
```JavaScript
8080
Routing.generate('route_id', /* your params */)
8181
```
8282

8383
Or if you want to generate **absolute URLs**:
8484

85-
```javascript
85+
```JavaScript
8686
Routing.generate('route_id', /* your params */, true)
8787
```
8888

@@ -113,7 +113,7 @@ Or using annotations:
113113
114114
You can use the `generate()` method that way:
115115

116-
```javascript
116+
```JavaScript
117117
Routing.generate('my_route_to_expose', { id: 10 });
118118
// will result in /foo/10/bar
119119
@@ -179,8 +179,8 @@ fos_js_routing:
179179
#### fos:js-routing:dump
180180

181181
This command dumps the route information into a file so that instead of having
182-
the controller generated javascript, you can use a normal file. This also allows
183-
to combine the routes with the other javascript files in assetic.
182+
the controller generated JavaScript, you can use a normal file. This also allows
183+
to combine the routes with the other JavaScript files in assetic.
184184

185185
$ php app/console fos:js-routing:dump
186186

@@ -194,12 +194,12 @@ you now include this as
194194

195195
Or inside assetic, do
196196

197-
{% javascripts filter='?yui_js'
197+
{% JavaScripts filter='?yui_js'
198198
'bundles/fosjsrouting/js/router.js'
199199
'js/fos_js_routes.js'
200200
%}
201201
<script src="{{ asset_url }}"></script>
202-
{% endjavascripts %}
202+
{% endJavaScripts %}
203203

204204

205205
*Hint*: If you are using JMSI18nRoutingBundle, you need to run the command with
@@ -217,7 +217,7 @@ This command lists all exposed routes:
217217
Compiling the JavaScript files
218218
------------------------------
219219

220-
Note: We already provide a compiled version of the Javascript; this section is only
220+
Note: We already provide a compiled version of the JavaScript; this section is only
221221
relevant if you want to make changes to this script.
222222

223223
In order to re-compile the JavaScript source files that we ship with this bundle, you

0 commit comments

Comments
 (0)