fabpot/Twig — Issue #478: Unknown tag name "endautoescape"
Author: snc
Created: 2011-10-21 09:51:06+00:00
State: open

I had a complex email template which I refactored a bit... then I made a mistake and removed an `{% endif %}` statement... the reported error was `Unknown tag name "endautoescape" in {} at line *`.

Here is an example template which will report the same error:

```
{% autoescape false %}
{% if 1 %}
{% endautoescape %}
```

I don't know if it would be possible to create a better error message in such a case?