diff --git a/routing.rst b/routing.rst index 5aaebf659cd..ed7e5df48f8 100644 --- a/routing.rst +++ b/routing.rst @@ -2266,8 +2266,11 @@ generating the route:: $this->generateUrl('blog_show', ['slug' => 'slug-value']); - // or, in Twig - // {{ path('blog_show', {slug: 'slug-value'}) }} +or, in Twig: + +.. code-block:: twig + + {{ path('blog_show', {slug: 'slug-value'}) }} Learn more about Routing ------------------------