From: Toni Uebernickel Date: Tue, 17 Jul 2012 14:52:07 +0000 (+0300) Subject: fix example autoescape for javascript X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=0869d155dbc50fbc9d0973b10050cd5c65601721;p=web%2Fkonrad%2Ftwig.git fix example autoescape for javascript {% autoescape js %} triggers an exception "An escaping strategy must be a string or a Boolean in .." --- diff --git a/doc/recipes.rst b/doc/recipes.rst index 5f98504..41540f2 100644 --- a/doc/recipes.rst +++ b/doc/recipes.rst @@ -328,7 +328,7 @@ you have some dynamic JavaScript files thanks to the ``autoescape`` tag: .. code-block:: jinja - {% autoescape js %} + {% autoescape 'js' %} ... some JS ... {% endautoescape %}