
Liquid template language
Liquid is an open-source template language created by Shopify and written in Ruby. It is the backbone of Shopify themes and is used to load dynamic content on storefronts.
Introduction – Liquid template language
Filters change the output of a Liquid object or variable. They are used within double curly braces {{ }} and variable assignment, and are separated by a pipe character |.
Template – Liquid template language
Allows you to leave un-rendered code inside a Liquid template. Any text within the opening and closing comment blocks will not be printed, and any Liquid code within will not be executed.
Types – Liquid template language
Nil is treated as false in the conditions of if blocks and other Liquid tags that check the truthfulness of a statement. In the following example, if the user does not exist (that is, user returns nil), Liquid will not …
Shopify Liquid code examples - GitHub Pages
This component contains the Liquid and HTML needed to display article title, author, published date, content, and tags. In this case, the visibility of the article author and published date can be enabled …
Whitespace control – Liquid template language
An overview of controlling whitespace between code in the Liquid template language.
Operators – Liquid template language
Operators Liquid includes many logical and comparison operators. You can use operators to create logic with control flow tags. Basic operators ... For example:
date – Liquid template language
Oct 23, 2024 · Liquid filter that prints and formats dates.Note that the value will be the current time of when the page was last generated from the template, not when the page is presented to a user if …
Control flow – Liquid template language
An overview of control flow and conditional tags in the Liquid template language.
Variations of Liquid - Liquid template language
To learn about the Liquid elements that you can use to build Shopify themes, and to learn about the other versions of Liquid at Shopify, refer to the Shopify Liquid reference.