Fabien Potencier eb89971925 minor #2879 Try to avoid guessing template info on errors (fabpot)
This PR was squashed before being merged into the 1.x branch (closes #2879).

Discussion
----------

Try to avoid guessing template info on errors

Right now, for syntax errors triggered in a Node, we guess the template line and source, but we then try to set the information in the Parser class. This PR avoids the guessing as it's slow.

Commits
-------

69c0539c removed -2 magic number
2389faea tried to avoid guessing template info on errors
2019-03-11 16:18:06 +01:00
2019-03-11 13:59:54 +01:00
2019-03-11 16:11:54 +01:00
2019-02-15 06:17:13 +01:00
2019-02-14 07:43:01 +01:00
2019-01-01 18:34:43 +01: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%