Skip to content

Commit 52316ac

Browse files
committed
use the jinja lexer to render Twig code
1 parent 5c0f8fb commit 52316ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/controller/error_pages.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ The cause of this problem is that routing is done before security. If a 404 erro
136136
occurs, the security layer isn't loaded and thus, the ``is_granted()`` function
137137
is undefined. The solution is to add the following check before using this function:
138138

139-
.. code-block:: twig
139+
.. code-block:: jinja
140140
141141
{% if app.user and is_granted('...') %}
142142
{# ... #}

0 commit comments

Comments
 (0)