Add Spaces Or Commas Between Lists In MiniJinja

Code
{%- for item in attr.value -%}
  {{- item -}}
  {%- if not loop.last -%}{{- ' ' -}}{% endif %}
{%- endfor -%}