mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
e225f8e2dd13186b8e16c635813ea942ebe260e6
This test case reproduces the issue reported by @stof in fabfot/Twig#958. This problem is being caused by the fact that the {% embed %} tag causes the generation of a separate template class sharing the exact same $this->templateName value as the main template containing the tag. This then confuses Twig_Error::guessTemplateInfo when it's iterating through the $backtrace comparing $this->filename to $trace['object']->getTemplateName().
…
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.
Description
Languages
PHP
99.9%
