Liquid introduction


Liquid is a template language made by Shopify. It's open source on GitHub and used by many software projects and companies.

What is a template language?

A template language lets you create one template to hold static content and dynamically insert information based on where it's used. For instance, you can make a product template with standard attributes like the product image, title, and price. This template can then display these attributes with the correct content depending on the product being viewed.

Variations of Liquid

<title>
{{ page_title }}
</title>
{% if page_description -%}
<meta name ="description" content ="{{ page_description | truncate: 150 }}" >
{%- endif %}

The Liquid variation mentioned here expands the open-source Liquid for Shopify themes. It has tags, filters, and objects to display Shopify store-specific elements and features.

Shopify uses different Liquid versions for some features to show dynamic content. These versions are not covered in this reference.