Browse code

fixed docs

Fabien Potencier authored on 17/10/2016 22:40:14
Showing 1 changed files
... ...
@@ -115,14 +115,14 @@ The following options are available:
115 115
   ``false`` to disable).
116 116
 
117 117
   As of Twig 1.9, you can set the escaping strategy to use (``css``, ``url``,
118
-  ``html_attr``, or a PHP callback that takes the template "filename" and must
118
+  ``html_attr``, or a PHP callback that takes the template name and must
119 119
   return the escaping strategy to use -- the callback cannot be a function name
120 120
   to avoid collision with built-in escaping strategies).
121 121
 
122
-  As of Twig 1.17, the ``filename`` escaping strategy determines the escaping
123
-  strategy to use for a template based on the template filename extension (this
124
-  strategy does not incur any overhead at runtime as auto-escaping is done at
125
-  compilation time.)
122
+  As of Twig 1.17, the ``filename`` escaping strategy (renamed to ``name`` as
123
+  of Twig 1.27) determines the escaping strategy to use for a template based on
124
+  the template filename extension (this strategy does not incur any overhead at
125
+  runtime as auto-escaping is done at compilation time.)
126 126
 
127 127
 * ``optimizations`` *integer*
128 128