Ignore Tag List

A list of Liquid tags that should excluded from formatting. Only tags which contain a start and end types are valid. This is a Liquid specific formatting rule which defaults to using 0 when no option has been specified.


Example

Below we are ignoring {% for %} and {% unless %} tag regions. Æsthetic will be skipped formatting these tag blocks. Ignored regions are excluded in a strict manner, so indentation levels are completely void of change and will persist. Only the surrounding tokens will have beautification applied.

<div>
{% if x == true %}

{% for i in array %}
{% # This region will not be formatted %}
    {% for x in i.ignored %}
{{ i.xxx }} {% # Nested tags are also ignored %}
  {% endfor %}
          {% # Notice how no indentation is applied %}
{% endfor %}

{% if xx == true %}
<ul>
<li>
This tag will format but below will not
</li>
  {% unless bar %}

      <li>
{% # This region will not be formatted %}
      </li>

  {% endunless %}
<li>
This tag will format but above will not
</li>
</ul>
{% endif %}
{% endif %}
</div>
<div>
  {% if x == true %}

{% for i in array %}
{% # This region will not be formatted %}
    {% for x in i.ignored %}
{{ i.xxx }} {% # Nested tags are also ignored %}
  {% endfor %}
          {% # Notice how no indentation is applied %}
{% endfor %}

    {% if xx == true %}
      <ul>
        <li>
          This tag will format but below will not
        </li>
  {% unless bar %}

      <li>
{% # This region will not be formatted %}
      </li>

  {% endunless %}
        <li>
          This tag will format but above will not
        </li>
      </ul>
    {% endif %}
  {% endif %}
</div>