Skip to content

Add filter, map and reduce filters with support for arrow functions #652

Open
@OxCom

Description

@OxCom

There are few nice features were added to Twig.

Please add support for this features. At current stage compilation process fails on parse mode of such constructions like:

{% for product in related_products|filter(product => product.stock > 10) %}
    {# ... #}
{% endfor %}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions