{%- liquid
render 'Snippet'
, a : a
, b : b
, c : c
-%}
Btw I think the liquid tag description in the welcome post is wrong
( liquid: Use this tag for questions and discussions specifically about migrating from REST to GraphQL. )
( Welcome to the Online Store and Theme Development Board! )
I am also +1 for this, but I think this confuses a little bit,
For example, in this case, append filter would be applied on imageClass or the result of render?
Indeed, a delimiter would be needed in here and it’ll probably introduce more headaches. I see Liquid is getting more attention by Shopify lately, so why not? The main concern would be rendering performance I guess as it can get out of control easily.
@panoply maybe this can be done via syncify + vscode-liquid?
The data is transformed to the shopify required format during build.
I’m not the biggest fan of this code pattern, I think it leaves room for errors, but if it were to be done I think vscode-liquid + syncify is the right setup for it
While I understand the drive for something like this, it opens the door to inconsistencies. Introducing punctuation syntactics like commas, for chained associations outside of arguments/parameter contexts, or singleton braces to achieve scope like isolation are a bit hectic imo and only solving nuances encountered within Liquid blocks tags….
Line breaks within Liquid blocks is something I’d like to see as long the structures stay within grammar bounds and are token bound (i.e, filters and/or tag arguments, parameters and keyword conditional operators).
I suppose most of this will be improved and less obtrusive once they iron out ternary expressions.
In terms of making something like that possible in my tools, I mean… I guess if devs like that type of style. However, I’d rather just expose beautification workarounds like word wrap exceptions or similar via Æsthetic.