tera
tera copied to clipboard
Nested arrays not supported
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
Not in the current version no
Is there any plan to add support for this?