Skip to content

Allow lambda expressions returning a template string with the map filter #19

@jg-rp

Description

@jg-rp

#16 introduced lambda expressions to the map filter, and limits the return value of such expressions to be a path (to a variable/value).

Considering that we now have string interpolation, it might be useful to to allow lambda expressions returning a string too.

{% assign foo = bar | map: i => “Hello, ${i.name}!” %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions