Liquid reference

Output tags

Output tags represent information about the page or about the layout.

In a sense they are similar to regular BC tags. Unlike regular tags however, Liquid output tags are wrapped in double curly braces like so:

{{name}}

To see the list of Liquid output tags you can use at any given point you can use the {{ this | json }} tag, this basically outputs all the tags that are available on a particular layout, page or template. Take a look at this article for the exact steps on how to use the {{ this | json }} tag.

Warning: if you need to access a liquid tag that has a space in its name, for example tag_large image_value use this syntax: {{cars1.items[0].["large image_value"]}} - Liquid does not allow for the name of its output tags to contain spaces. In this case the tag that contains a space needs to be wrapped in square bracketsĀ and quotes and preceded by the name of the collection (in this case cars1).

Logic tags

Logic tags represent the logic that can be used to manipulate the Liquid tags and markup. You can use FOR loops, IF/CASE statements and so on. Here is the list of block statements you can use and a few examples for each of them.

Operators

Operators can be used to compare different variables and output tags. Here is the list of operators.

Filters

Filters can be added to output tags in order to manipulate their content. You can perform string-type operations (capitalize, convert to lower case, replace etc), mathematical operations, etc. Take a look at the list of supported filters.

List of modules that support Liquid