{%- if fields is not empty -%} {%- for field in fields -%} {{ field.name }} {%- if not (loop.last) %}, {% endif %} {%- endfor -%} {%- endif -%}