projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d456640
)
fix example autoescape for javascript
author
Toni Uebernickel
<tuebernickel@gmail.com>
Tue, 17 Jul 2012 14:52:07 +0000 (17:52 +0300)
committer
Toni Uebernickel
<tuebernickel@gmail.com>
Tue, 17 Jul 2012 14:52:07 +0000 (17:52 +0300)
{% autoescape js %} triggers an exception "An escaping strategy must be a string or a Boolean in .."
doc/recipes.rst
patch
|
blob
|
history
diff --git
a/doc/recipes.rst
b/doc/recipes.rst
index
5f98504
..
41540f2
100644
(file)
--- 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 %}