Skip to content

Commit 2e848b4

Browse files
authored
Minor: Use Twig code block
this way it can easily be copied
1 parent e62f4c7 commit 2e848b4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

routing.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2266,8 +2266,11 @@ generating the route::
22662266

22672267
$this->generateUrl('blog_show', ['slug' => 'slug-value']);
22682268

2269-
// or, in Twig
2270-
// {{ path('blog_show', {slug: 'slug-value'}) }}
2269+
or, in Twig:
2270+
2271+
.. code-block:: twig
2272+
2273+
{{ path('blog_show', {slug: 'slug-value'}) }}
22712274
22722275
Learn more about Routing
22732276
------------------------

0 commit comments

Comments
 (0)