mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
2555dd009cfb03581295d0afa13497b2cb8526a0
This PR was merged into the 1.x branch. Discussion ---------- Move tests handling in Twig_ParserExpression instead of Twig_Extension_Core In my quest to better organize the layers in Twig, I've always find the way we deal with test a bit awkward. This PR moves the code from the Core extension to the Parser, where it belongs, even if if makes hardcoding 'is' and 'is not' twice, but I think SOC is more important here. Especially as I want to remove the `getEnvironment()` from the Parser class at some point. Having everything centralized helps a lot. Commits -------4deb03adeprecated Twig_Parser::getEnvironment()0d6686emoved tests handling in Twig_ParserExpression instead of Twig_Extension_Core
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%