Keats / tera

A template engine for Rust based on Jinja2/Django
http://keats.github.io/tera/
MIT License
3.53k stars 282 forks source link

Nested arrays not supported #727

Open Bauxitedev opened 2 years ago

Bauxitedev commented 2 years ago

Quick question, does tera support nested arrays?

Because making a normal array works fine:

{% set items = [1,2,3,4] %}

...but when I try to create a nested array:

{% set items = [[1,2],[3,4]] %}

...I get this error:


* Failed to parse "templates/base.html.tera"
   --> 158:20
    |
158 |     {% set items= [[1,2],[3,4]] %}␍␊
    |                    ^---
    |
    = expected a value that can be negated
Keats commented 2 years ago

Not in the current version no

WesleyAC commented 9 months ago

Is there any plan to add support for this?