Allows you to leave un-rendered code inside a Liquid template. Any text within the opening and closing comment blocks will not be printed, and any Liquid code within will not be executed.
{% # %} comments out a single tag. It renders nothing, and it accepts whitespace control. A comment can span several lines when each line starts with #.
liquid
{% # theme-check-disable %}{%- # trims the whitespace around it -%}{% # first line # second line%}
1 2 3 4 5 6
Inside a liquid tag, a line that starts with # is a comment.
commentAllows you to leave un-rendered code inside a Liquid template. Any text within the opening and closing
commentblocks will not be printed, and any Liquid code within will not be executed.Example:
2
3
4
5
Output
2
3
Inline comments
{% # %}comments out a single tag. It renders nothing, and it accepts whitespace control. A comment can span several lines when each line starts with#.2
3
4
5
6
Inside a
liquidtag, a line that starts with#is a comment.