Skip to main content

Syntax

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.

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

raw​

Outputs any Liquid code as text instead of rendering it.

Syntax
{% raw %}
expression
{% endraw %}
  • expression: The expression to be output without being rendered.
Code
{% raw %}
{{ 8 | times: 2 }} equals 16.
{% endraw %}
Output
{{ 8 | times: 2 }} equals 16.
On this page