Multiline Filters
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 11.9k
- Forks
- 1.5k
- Avg merge
- 17h 55m
- Merged PRs (30d)
- 3
Description
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
%}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the multiline {% liquid %} examples in the issue and trace how Liquid blocks, filters, and render parameters are parsed. Define the accepted multiline syntax and verify that the filter-chain and parameter examples parse and preserve their intended behavior, while checking existing syntax tests if you locate them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100