Fabien Potencier 4d18a63248 bug #2700 Report the proper location for errors compiled in templates (stof)
This PR was merged into the 2.x branch.

Discussion
----------

Report the proper location for errors compiled in templates

The `{% use %}` and `{% with %}` tags are adding some runtime checks triggering exceptions in the compiled template. This ensures that they get the proper location.
While the guessing was generally working fine for the `{% with %}` (and so this only makes the code faster), the guessing was not working for `{% use %}` due to the exception happening in the class constructor rather than on display (and so the guessing was finding the template which was triggering the load of the faulty template).

Commits
-------

e4423576 Report the proper location for errors compiled in templates
2018-06-07 07:42:53 +02:00
2018-06-07 07:41:23 +02:00
2018-01-30 14:02:48 +01:00
2018-03-01 16:12:51 -08:00
2018-05-18 09:34:00 +02:00
2018-04-20 07:23:43 +02:00

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
Languages
PHP 99.9%