mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 10:56:38 +00:00
02f8423a3a050af5b3f79569af7fe13c9f220235
This PR was merged into the 1.x branch.
Discussion
----------
Allow Traversable objects to be used in the with tag
Currently `with` does an `in_array()` check, this allows `Traversable`~/`JsonSerializable`~ objects to be used as they can also contain a hash.
Commits
-------
572a2a09 Allow Traversable objects to be used in the with tag
Twig, the flexible, fast, and secure template language for PHP ============================================================== Twig is a template language for PHP, released under the new BSD license (code and documentation). Twig uses a syntax similar to the Django and Jinja template languages which inspired the Twig runtime environment. More Information ---------------- Read the `documentation`_ for more information. .. _documentation: https://twig.symfony.com/documentation
Description
Languages
PHP
99.9%