Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------

Expand Down
Loading