mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-01 21:17:21 +00:00
fix example autoescape for javascript
{% autoescape js %} triggers an exception "An escaping strategy must be a string or a Boolean in .."
This commit is contained in:
+1
-1
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user