Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline Filters #1703

Open
PhoneDroid opened this issue Mar 25, 2023 · 2 comments
Open

Multiline Filters #1703

PhoneDroid opened this issue Mar 25, 2023 · 2 comments

Comments

@PhoneDroid
Copy link

PhoneDroid commented Mar 25, 2023


I assume there already is a related issue,
but I wasn't able to find it if it exists.


Suggestion

Allow multiline filters in liquid blocks

{% liquid

    # Showcase of multiline goodness

    assign value = 'this-is-a-test'
        | split : '-'
        | uniq
        | sort_natural
        | join : ' '

%}

Reasoning

This would allow people to write cleaner, more structured
code that doesn't rely on the overuse of {% tag %} blocks
and would make writing 'pure code' a much easier task.


Extended

The same would be for parameters as well

{% liquid

    render 'snippet'
        , a : a
        , b : b

%}

@ptz0n
Copy link

ptz0n commented Mar 22, 2024

Agree, assign, render and echo should support multiline filters.

@PhoneDroid
Copy link
Author

bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants