mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 10:26:32 +00:00
f59b33a93ea97a798780e97cb0724e0090d0a12d
This PR was merged into the 1.x branch. Discussion ---------- Bugfix: When rendering blocks of other templates, don't pass the local blocks array This PR fixes symfony/symfony#20556. When referring to a block of another template from within a template that also has a block with the same name, Twig renders the wrong block. Commits -------8c090a7added tests for block() when using a template argumenta5526f3fixed block() is defined call when using a template argumentc04d077Bugfix: When rendering blocks of other templates, don't pass the local blocks array.
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: http://twig.sensiolabs.org/documentation
Description
Languages
PHP
99.9%