From 52316ace6edb116c5326409e5e6a5c0413f919e6 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 10 Jun 2015 21:40:24 +0200 Subject: [PATCH] use the jinja lexer to render Twig code --- cookbook/controller/error_pages.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/controller/error_pages.rst b/cookbook/controller/error_pages.rst index db3b5baa132..20112046b6f 100644 --- a/cookbook/controller/error_pages.rst +++ b/cookbook/controller/error_pages.rst @@ -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('...') %} {# ... #}