Twig icon indicating copy to clipboard operation
Twig copied to clipboard

Twig, the flexible, fast, and secure template language for PHP

Results 200 Twig issues
Sort by recently updated
recently updated
newest added

I get a syntax error when I try to use `{% apply u.wordwrap(80) %}`. Works fine with `{{ text|u.wordwrap(80) }}` but with the apply tag I get a `"Unexpected token...

When registering a test named "empty element" I am getting the following error. > Unexpected token "name" of value "element" ("end of statement block" expected). That's likely because the Twig...

When an included template has a dynamic parent and the computed parent name is invalid, the error gets reported with the location of the `include` tag rather than the location...

See the fiddle at https://twigfiddle.com/hmgy4z The template name and the line are reported as part of the message, not as part of the exception location, as done for most other...

The documentation explictly says so: > Before Twig 2.11, it was possible to use macros imported in a block in a "sub-block". When upgrading to 2.11, you need to either...

Bug

If the variable used for a `{% for item in seq %}` tag is not defined, and the `item` variable name shadows the `seq` variable name, Twig assumes the `seq`...

When a macro is defined in a parent template, it is considered as not defined even though it is available in the template: ```twig {% extends "parent.twig" %} {% block...

Hi, often i forget to delete dump functions in twig templates. Is there a way to detect them and use this in a prehook in git? See you Roland