liquid
liquid copied to clipboard
Accept `| t` within parameter
Hi there,
We use quite a lot of snippets to normalise development. We'd like to be able to pass the | t filter to a parameter.
Example
{% liquid
# Preferred
render 'button', label: 'product.add_to_cart' | t, type: 'submit'
# Currently
assign label = 'product.add_to_cart' | t
render 'button', label: label, type: 'submit'
%}
Hey @stijns96! This is a good idea. There's ongoing foundational work that's happening right now that should hopefully unblock features like this in the future.