Print_r value in fluid

In Liquid, how can I find out all the values ​​that the collection contains? Is there a print_r function or similar?

In the example below, the title of the element will be returned, but I would like to know what else holds for other elements.

 item.title 

Thanks.

+8
ruby-on-rails liquid shopify
source share
1 answer

And there I got to the end! Not exactly print_r, but close enough to see what is available. This displays the properties in JSON format, so you can see what is there.

 {{item | json}} 
+13
source share

All Articles