What is the correct way to comment out in the Liquid templating language?
In liquid, you use {% comment %}
and {% endcomment %}
tags:
{% comment %} This would be commented out {% endcomment %}
You can also use it in block:
{% comment %}
This would also be commented out
{% endcomment %}
If the {% comment %}
and {% endcomment %}
tags would comment anything, including HTML elements and such:
{% comment %}
This whole div would be commented out