Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Liquid basics

Liquid uses a combination of tags, objects, and filters to load dynamic content. They are used inside template files, which are a group of files that make up a theme.


In this article


Tags

Tags make up the programming logic that tells templates what to do. Read more >

{% if user.name == 'elvis' %}
  Hey Elvis
{% endif %}

Objects

Objects contain attributes that are used to display dynamic content on a page. Read more >

{{ product.title }} <!-- Output: Awesome T-Shirt-->

Filters

Filters are used to modify the output of strings, numbers, variables, and objects. Read more >

{{ 'sales' | append: '.jpg' }} <!-- Output: sales.jpg -->