Skip to content

Commit ce52235

Browse files
committed
minor #8021 Added a missing <script> tag in an example (javiereguiluz)
This PR was squashed before being merged into the 2.7 branch (closes #8021). Discussion ---------- Added a missing <script> tag in an example It's obvious that this code is JavaScript ... but to make it consistent with the other example of the article, I propose to add the `<script>` tags to the second example. Close it if you disagree. Thanks! Commits ------- 2323e19 Added a missing <script> tag in an example
2 parents 3f0dd18 + 2323e19 commit ce52235

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

routing/generate_url_javascript.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ variables. The ``escape()`` function helps escape any non-JavaScript-safe values
2626
But if you *actually* need to generate routes in pure JavaScript, consider using
2727
the `FOSJsRoutingBundle`_. It makes the following possible:
2828

29-
.. code-block:: javascript
29+
.. code-block:: html+twig
3030

31+
<script>
3132
var url = Routing.generate('blog_show', {
3233
'slug': 'my-blog-post'
3334
});
35+
</script>
3436

3537
.. _`FOSJsRoutingBundle`: https://github.com/FriendsOfSymfony/FOSJsRoutingBundle

0 commit comments

Comments
 (0)