mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-31 12:37:15 +00:00
b1ef75c95444f1e0f3fd967e2b283c424efdadf7
This PR was squashed before being merged into the 3.x branch. Discussion ---------- Fix documentation inaccuracies found during the 3.29 review Aligns the docs with actual behavior: `include_only` globals, `html_attr` `data-*` iterables, destructuring slot consumption and iterator reuse, a caution for the Tempest converter, `MacroNode::compile()` overrides, and a duplicated CHANGELOG entry. Commits -------59f7d67848Document that reusing a non-rewindable iterator after destructuring is unsupported099fa3471aDocument that sequence destructuring consumes one value per pattern slotabbdf82823Fix the html_attr documentation about iterables in data attributesbe220e6fd8Warn about untrusted input with the default Tempest markdown converter1205b8b6caDocument that overriding MacroNode::compile() is not supported anymore7bd052dd91Merge overlapping CHANGELOG entries for the destructuring fatal error fix207f873739Document that include_only keeps global variables available
…
…
Twig, the flexible, fast, and secure template language for PHP
==============================================================
Twig is a template language for PHP.
Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.
Sponsors
--------
.. raw:: html
<a href="https://docs.blackfire.io/introduction?utm_source=twig&utm_medium=github_readme&utm_campaign=logo">
<img src="https://static.blackfire.io/assets/intemporals/logo/png/blackfire-io_secondary_horizontal_transparent.png?1" width="255px" alt="Blackfire.io">
</a>
More Information
----------------
Read the `documentation`_ for more information.
.. _documentation: https://twig.symfony.com/documentation
Description
Languages
PHP
99.9%