Add documentation for use_yield option

Documentation was present in the source code, but missing in the docs.
This commit is contained in:
hschletz
2025-07-02 12:45:53 +02:00
committed by GitHub
parent 403bd9d73c
commit b8827b412d
+11
View File
@@ -145,6 +145,17 @@ The following options are available:
(default to ``-1`` -- all optimizations are enabled; set it to ``0`` to
disable).
* ``use_yield`` *boolean*
``true``: forces templates to exclusively use ``yield`` instead of ``echo``
(all extensions must be yield ready)
``false`` (default): allows templates to use a mix of ``yield`` and ``echo``
calls to allow for a progressive migration.
Switch to ``true`` when possible as this will be the only supported mode in
Twig 4.0.
Loaders
-------