logo
Category
Feedback

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 %}

Write a comment