Skip to content

Commit

Permalink
use the jinja lexer to render Twig code
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Jun 10, 2015
1 parent 5c0f8fb commit 52316ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/controller/error_pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ The cause of this problem is that routing is done before security. If a 404 erro
occurs, the security layer isn't loaded and thus, the ``is_granted()`` function
is undefined. The solution is to add the following check before using this function:

.. code-block:: twig
.. code-block:: jinja
{% if app.user and is_granted('...') %}
{# ... #}
Expand Down

0 comments on commit 52316ac

Please sign in to comment.