mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-20 14:36:57 +00:00
Add documentation for use_yield option
Documentation was present in the source code, but missing in the docs.
This commit is contained in:
+11
@@ -145,6 +145,17 @@ The following options are available:
|
|||||||
(default to ``-1`` -- all optimizations are enabled; set it to ``0`` to
|
(default to ``-1`` -- all optimizations are enabled; set it to ``0`` to
|
||||||
disable).
|
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
|
Loaders
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user