Created
October 13, 2017 15:10
-
-
Save degt/98cd9f72826ac5a51cc3cf9ba2d3e425 to your computer and use it in GitHub Desktop.
Arrays in Liquid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign words = "Hi, how are you today?" | split: ' ' %} | |
{% for word in words %} | |
{{ word }} <br> | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://help.shopify.com/themes/liquid/filters/string-filters#split Documentation