Twig icon indicating copy to clipboard operation
Twig copied to clipboard

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

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

I have a lot of templates that are intended to be used with `{% include ... with { } %}` or `{% embed ... with { } %}`. Conceptually, I...

Investigate before 4.x

I've been experimenting with adding my compiled templates to my code coverage reports and it works largely as expected. Templates that get executed return percentages accurate to the number of...

Not all callables can be dumped by `var_export`. For example https://github.com/symfony/symfony/issues/46209 but there can be any other issues. It doesn't add much I believe -- the structure is visible without...

Fix for #3685. Reworked the "remove indentation" to properly account for all lines, work with leading linebreaks, and retain codeblocks at start of markdown. Reworked the tests, to among other...

Markdown

Hello, while updating Twig to version 3 we encountered a problem with template extensions when passing an array of templates to the `extends` tag. The problem occurs, when you extend...

Could you update the `.gitattributes` on each branch ? I often have to add some of your files to a delete list before creating release tarballs at phpMyAdmin Thank you...

I thought I was going mad at one point. I've simplified the issue to the following code: ```php $loader = new \Twig\Loader\ArrayLoader([ 'index' => '{{ text|markdown_to_html }}', ]); $twig =...

Markdown

During the symfony live, Fabien talk about a PR he did on the Expression Language component (https://github.com/symfony/symfony/pull/45875/files). The goal was to throw a more readable error when using the matchs...

If an expression `{{ }}` or statement `{% %}` is directly followed by a linebreak, which is pretty often, it seems to be automatically removed. For instance: ```twig {% set...

https://github.com/twigphp/Twig/pull/2944 have added this feature but if it is not desirable for some reason there's no way to switch it off. Even a method inaccessible from the templates would be...