Hello Shopify Devs,
I’m brand new to Liquid and starting to get acquainted with the documentation. On the Shopify Liquid Overview page, I began auditing one particular code block regarding “Modifying output with filters” and was finding it increasingly difficult to get exact answers to my query in regards to syntax usage. I’ve attached a screenshot that I took that points to the # symbol and → . As I dug deeper, I found some documentation on Ruby usage of the # symbol that might be applicable, but I felt like I was going in circles.
-
Is the # symbol usage in the screenshot below acting as a symbol to capture “product.title” as a collection variable? If inaccurate, what is it doing in this scenario?
-
I understand arrow functions work, but the syntax I see below is → and not => . Is this a comment in Liquid by chance? If not, could anyone tell me what is happening there?
Thank for your time if you have read this. Hope these questions were not too stupefying. And if there is specific documentation you could point me to, I’d be happy to read it. Cheers!