Monthly Archives: July 2017

Commenting In Liquid

Liquid has its own syntax, and if you need to comment parts of code, instead of trying to comment HTML or deleteing code you may need later on, simply use:

{% comment %}
{% endcomment %}

Example

{% comment %}
{% if form.errors %}
  <div class="{{ form_errors_class }}">
    {{ form.errors | default_errors }}
  </div>
{% endif %}
{% endcomment %}