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 %}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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