Twig
Twig copied to clipboard
Twig, the flexible, fast, and secure template language for PHP
When using a `Twig\Markup` as an object key it doesn't get converted to a string automatically. ```twig {% set someClasses %} {{ html_classes(...) }} {% endset %} ``` In a...
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure. Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot GitHub...
The class reflection changes that were introduced in https://github.com/twigphp/Twig/commit/bb64a49441a00787ab2ea8f322b450af34f2778f may cause issues with classes that have `__call` or `__callStatic` magic method that belong to a parent class, like Laravel facades....
Hi, I think it's a sort of bug, but it may be classified as a whish. I'm using Symfony. I've added the non public attribute $event_login to an entity class....
The [documentation](https://github.com/twigphp/Twig/blob/b4d6723715da57667cca851051eba3786714290d/doc/templates.rst#expressions) states the following: > The operator precedence is as follows, with the lowest-precedence operators listed first: ?: (ternary operator), b-and, b-xor, b-or, or, and, ==, !=, , ,...
Hi, It seem that the property `loop.last` disappear from the properties of the `loop` object when we apply a filter on the loop. Here is the code I use :...
When renaming blocks in the use statement (`{% use "blocks.twig" with bar as baz %}`), the renamed blocks cannot be adjusted/overwritten in the template. Same goes for extenders of this...
I tried to define random values with arbitrary sign and have come to the conclusion that the power function seems to be implemented in a non-standard fashion. Twig version is...
Hi there, I stored general templates under this structure of directories in my Symfony project:  (shared is under src directory) In other hand, I created a Twig template under...
**Version context:** Twig version: v3.3.10 Twig Bridge version: 6.0.8 Symfony version: 6.0.8 PHP version: 8.1.5 **What's happening:** I just tried to use a different twig trait depending on whether a...