Skip to content

Commit b839ce6

Browse files
committed
minor #5378 [Cookbook][Controller] use the jinja lexer to render Twig code (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- [Cookbook][Controller] use the jinja lexer to render Twig code | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | Using `twig` works on newer Sphinx versions, but makes it harder for people to build the documentation locally with older versions. Commits ------- 52316ac use the jinja lexer to render Twig code
2 parents 6c012d8 + 52316ac commit b839ce6

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)