Twig
Twig copied to clipboard
Twig, the flexible, fast, and secure template language for PHP
Twig should not throw exceptions when trying to load optional templates such as`{% include ['template1', 'template2', 'template3'] %}` or `{% include 'template' ignore missing %}` . I was looking into...
TLDR: I think the twig coding standard about variable casing should be either removed, either precised. In the twig coding standard https://github.com/twigphp/Twig/blob/3.x/doc/coding_standards.rst#coding-standards, there is the following rule > Use lower...
Code ``` ``` {{ rows.class }} = full-width Result ``` ``` After rendering, the engine does not respect the space between classes and joins the 2 values. This error I...
Add destructuring assignment syntax that makes it possible to unpack values from arrays, or properties from objects, into distinct variables (as same is in Javascript): A twig template ```twig {%...
League CommonMark: v1.6.6 Twig Markdown-Extra: v3.3.3 Twig: v3.3.3 The `LeagueMarkdown` constructor is requiring the `$converter` parameter to explicitly be an instance of `CommonMarkConverter`, however with League CommonMark v1.6, the converter...
**Issue** Looking up documentation for twig's _include_ statement, & clicking the alert message "... Switch to the documentation for Twig 1.x, 2.x" **link takes the user away from the topic...
The current algorithm causes the meaning of a sentence to be broken because it concatenates multiple tags together, which can be, for example, a link and a formatting tag. In...
Feature request: Make the argument optional for the `filter` filter. Instead of doing this: ``` {{ ['123 Main St', null, 'New York', 'NY', '10001']|filter(a => a)|join(', ') }} ``` it...
`\Twig\Extra\Intl\IntlExtension`'s constructor takes an optional `IntlDateFormatter` prototype. That works great for settings various defaults (`dateType, timeType, pattern`), but it doesn't enable automatic timezone conversion. # IntlDateFormatter Consider this plain PHP...
# Feature : Call `{{ parent($level) }}` with level when having multiple level of extends, closest levels are ignored (like `continue` and `break` in php) > Ex: `{{ parent(2) }}`...