Skip to content

Block Assignment Filters #486

@eli-collins

Description

@eli-collins

2.8's block assignments have been incredibly useful, but I've found myself doing the following a lot...

{% set title %}
    <h1>{{ value }}</h1>
{% endset %}
{% set title = title | safe %}

Would it be possible to allow moving the filter call into the block assignment call, such as with the following syntax?

{% set title | safe %}
    <h1>{{ value }}</h1>
{% endset %}

(There might be a better / more generally flexible syntax, that's just the one that first occurred to me to try).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions