Twig icon indicating copy to clipboard operation
Twig copied to clipboard

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

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

Twig already offers a [`first`](https://twig.symfony.com/doc/3.x/filters/first.html) filter that is used to retrieve the first value of a list (array, iterable). This feature request proposes an enhancement to the `first` filter by...

As mentioned in [this issue](https://github.com/twigphp/Twig-extensions/issues/211), the addition of the Intl extension should have enabled the display of feminine ordinal numbers through the `format_ordinal_number` filter (e.g. `1re` instead of `1er` in...

When an error occures we currently get the message e.g. "An exception has been thrown during the rendering of a template ("Warning: Undefined array key "select"")." The problem is, that...

Add documentation for twig filters compatible with tag apply tag uses

One drawback to writing extensions at present is that the declaration of functions/filters/tests is not directly adjacent to the methods. It's worse for runtime extensions because they need to be...

Is it possible to use [erusev/parsedown-extra](https://github.com/erusev/parsedown-extra/) with the MarkdownExtension?

Markdown

https://validator.w3.org/nu/ says: > Warning: Self-closing tag syntax in text/html documents is [widely discouraged](https://google.github.io/styleguide/htmlcssguide.html#Document_Type); it’s unnecessary and [interacts badly with other HTML features](https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=10809) (e.g., unquoted attribute values). If you’re using a...

This is an implementation of Defaults for the Twig Security Policy. The idea is that there should be a set of known safe values that a user can whitelist. The...

Allows for flexible wildcard support in allowedMethods and allowedProperties in SecurityPolicy. - Class can be specified as wildcard, `* => ['foo',...]` in order to allow those methods/properties for all classes....