Latte |filter supporting filtering.
The best way to install tacoberu/latte-filters is using Composer:
$ composer require tacoberu/latte-filters
Then register the extension in the config file:
# app/config/config.neon
latte:
extensions:
- Taco\Latte\FilterLatteExtension
{foreach ($items|filter: fn($x) => strlen($x->name)) as $row}
...
{/foreach}
Latte filters is under the MIT license. See the LICENSE file for details.