mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 18:25:41 +03:00
1.2 KiB
1.2 KiB
title
| title |
|---|
| Basics |
Introduction
Liquid is an open-source, Ruby-based template language created by Shopify. It is the backbone of Shopify themes and is used to load dynamic content on storefronts.
Liquid uses a combination of tags, objects, and filters to load dynamic content. They are used inside Liquid template files, which are a group of files that make up a theme. For more information on the available templates, please see Theme Development.
Tags
Tags make up the programming logic that tells templates what to do.
{% raw %} {% if user.name == 'elvis' %} Hey Elvis {% endif %} {% endraw %}
Filters
Filters are used to modify the output of strings, numbers, variables, and objects.
{% raw %} {{ 'sales' | append: '.jpg' }} {% endraw %}