tacoberu/latte-filters

Latte |filter supporting filtering.

v1.0.0 2024-07-09 00:18 UTC

This package is auto-updated.

Last update: 2024-12-09 01:08:25 UTC


README

Latte |filter supporting filtering.

Installation

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

Usage

{foreach ($items|filter: fn($x) => strlen($x->name)) as $row}
	...
{/foreach}

License

Latte filters is under the MIT license. See the LICENSE file for details.