mozilla / nunjucks

A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)
https://mozilla.github.io/nunjucks/
BSD 2-Clause "Simplified" License
8.48k stars 634 forks source link

unexpected token: } in nested set value #1466

Open blachawk opened 2 months ago

blachawk commented 2 months ago

Receiving that error message for the following logic in my Nunjucks project....

  {% set items = [
    {
      name: 'specials',
      heading:'Special Addition : Ukrainian Folk Music',
      subTitle: 'Special Tracks',
      subTitleClass: 'special-title',
      subLabel: 'Click below to preview tracks',
      subLabelClass: 'txt-preview',
      track01: {
        trackTitle: '',
        trackTitleClass: '',
        trackLocation: '',
      },
    }
  ] %}

What could possibly be wrong with this?

adamaveray commented 1 month ago

@blachawk Trailing commas are not supported – see #1001