Shopify’s Liquid is an open-source, Ruby-based template language introduced in 2006 as the backbone of Shopify themes. It enables developers to create reusable templates that render dynamic content—such as product titles, prices, and images—by combining objects, tags, and filters within HTML files (Shopify·GitHub). Liquid has since evolved beyond Shopify, powering diverse web applications and static site generators.
Liquid’s syntax revolves around three primitives: objects, tags, and filters. Objects—delimited by {{ }}
—output variables and store content, such as product.title
or page.handle
. Tags—delimited by {% %}
—define control flow, iteration, and logic without rendering visible output. Filters—invoked via the pipe operator (|
)—transform data, enabling operations like {{ price | money }}
or `{{ author.na