liquid
liquid copied to clipboard
Liquid markup language. Safe, customer facing template language for flexible web apps.
Theme code
I needed help with my store theme code, it causing the store speed to be low and very slow.
`Template.parse("{{ (true..false) }}")` throws a NoMethodError `.to_i` on TrueClass. I had a partial fix in https://github.com/Shopify/liquid/commit/185ad2e5104e92912e223586b14deeff28878f51, but it looks like that's breaking lax parse with an extra dot by throwing...
This is obscure and we do support it but behaves rather strangely. We should deprecate this. ```liquid {% assign product.img = "hi" %} {% # prints nothing %} {{ product.img...
I have a custom metafield of a product list. When I display the list {{ product.metafields.custom.mylist }} ["gid://shopify/Product/7668926775542","gid://shopify/Product/7491343778038"] but {{ product.metafields.custom.mylist.size }} shows nothing is list !== array?
Is there a way to override or extend an existing liquid file? I want to change many things from a theme without modifying the original theme. Creating duplicates for shopify...
"and" is and. "or" is or. but what is "not" ? thanks!
The [preload_tag](https://shopify.dev/api/liquid/filters/html-filters#preload_tag) is adding the `rel="preload"` attribute twice. For example, here's the tag I'm using: `{{ 'Font-Name.woff2' | asset_url | preload_tag: as: 'font' }}` ...and here's the outout: ``
I have block schema that holds some checkboxes, images, and text fields that is being validated and updated correctly to the theme, but when I set the image through the...
```liquid {%- schema -%} { "name": "My cool section" } {%- endschema -%} ``` vs ```liquid {% schema %} { "name": "My cool section" } {% endschema %} ``` The...
Hi, In Shopify, we often need to loop through blocks and ignore some depending on conditions. It would be very handy if for loops would support an extra "where" and...