We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 403bd9d commit b8827b4Copy full SHA for b8827b4
1 file changed
doc/api.rst
@@ -145,6 +145,17 @@ The following options are available:
145
(default to ``-1`` -- all optimizations are enabled; set it to ``0`` to
146
disable).
147
148
+* ``use_yield`` *boolean*
149
+
150
+ ``true``: forces templates to exclusively use ``yield`` instead of ``echo``
151
+ (all extensions must be yield ready)
152
153
+ ``false`` (default): allows templates to use a mix of ``yield`` and ``echo``
154
+ calls to allow for a progressive migration.
155
156
+ Switch to ``true`` when possible as this will be the only supported mode in
157
+ Twig 4.0.
158
159
Loaders
160
-------
161
0 commit comments