Skip to content

Commit 138957e

Browse files
committed
minor #14512 Minor: Use Twig code block (OskarStark)
This PR was merged into the 4.4 branch. Discussion ---------- Minor: Use Twig code block this way it can easily be copied <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 2e848b4 Minor: Use Twig code block
2 parents b7cb730 + 2e848b4 commit 138957e

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)