Syntax tags control how Liquid code is processed and rendered.

comment

Prevents an expression from being rendered or output.

Any text inside comment tags won't be output, and any Liquid code will be parsed, but not executed.

{% comment %}
  content
{% endcomment %}
  • content: The content of the comment.

raw

Outputs any Liquid code as text instead of rendering it.

{% raw %}
  expression
{% endraw %}
  • expression: The expression to be output without being rendered.
{% raw %}
  {{ 8 | times: 2 }} equals 16.
{% endraw %}
{{ 8 | times: 2 }} equals 16.