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
Block Assignment Filters #486
Comments
👍 You could use |
- e.g {% set foo | trim %}...{% endset %} - closes pallets#486
- e.g {% set foo | trim %}...{% endset %} - closes pallets#486
- e.g {% set foo | trim %}...{% endset %} - closes pallets#486
Actually, the fact that you need to filter your set block as Opened another issue about this: #490 |
#490 alone would definitely solve all my use-cases; if that was pushed through, I'd be happy whichever way you end up deciding this issue. Without the frequent need to use a 'safe' filter, the block filter syntax is probably more than sufficient for the remaining edge cases that I can think of. |
- e.g {% set foo | trim %}...{% endset %} - closes pallets#486
- e.g {% set foo | trim %}...{% endset %} - closes pallets#486
- e.g {% set foo | trim %}...{% endset %} - closes pallets#486
- e.g {% set foo | trim %}...{% endset %} - closes pallets#486
- e.g {% set foo | trim %}...{% endset %} - closes pallets#486
- e.g {% set foo | trim %}...{% endset %} - closes pallets#486
- e.g {% set foo | trim %}...{% endset %} - closes pallets#486
- e.g {% set foo | trim %}...{% endset %} - closes pallets#486
- e.g {% set foo | trim %}...{% endset %} - closes pallets#486
- e.g {% set foo | trim %}...{% endset %} - closes pallets#486
- e.g {% set foo | trim %}...{% endset %} - closes pallets#486
2.8's block assignments have been incredibly useful, but I've found myself doing the following a lot...
Would it be possible to allow moving the filter call into the block assignment call, such as with the following syntax?
(There might be a better / more generally flexible syntax, that's just the one that first occurred to me to try).
The text was updated successfully, but these errors were encountered: