This requirement is often used, for example, in if-elseif or in a for loop, it will output empty lines of the rows in the if-else tag part. If you want to clear this empty line, you can use it in front or behind the label-
to implement filtering.
Sample code
{%- if false %}
1st choice
{%- elif false %}
2nd choice
{%- elif true %}
3rd choice
{%- endif %}
正常下
{% for item in archives %}
{{ item.Id }}
{% endfor %}
紧凑:
{% for item in archives %}
{{- item.Id }}
{% endfor %}
不带换行
{% for item in archives -%}
{{ item.Id }}
{%- endfor %}