English
Syntax tags provide additional control over template code.
comment
{% comment %} This is a comment that won't be rendered. {% endcomment %}
This is visible. {% comment %} This is a comment that won't appear in the output. {% endcomment %} This is also visible.
This is visible. This is also visible.
raw
{% raw %} Liquid tags inside here won't be processed. {% endraw %}
{% raw %} In Liquid, you can use {% if condition %} to create conditionals. {% endraw %}
In Liquid, you can use {% if condition %} to create conditionals.
liquid
{% liquid assign variable_name = value if condition echo 'Output if true' endif %}
{% liquid assign name = "John" if name == "John" echo 'Hello, ' | append: name else echo 'Hello, stranger' endif %}
Hello, John
echo
{{ value }}
{% liquid %}
{% echo value %}
{% assign greeting = "Hello, world!" %} {% echo greeting %}
Hello, world!