Closed wolfendale closed 4 years ago
Outputting an array in a template produces incorrect output as the regular scala .toString method is called on the array contents instead of coercing the values to strings and generating the appropriate values.
.toString
Input: {{ [1, 2, 3] }}
{{ [1, 2, 3] }}
Output: Number(1.0),Number(2.0),Number(3.0)
Number(1.0),Number(2.0),Number(3.0)
Expected: [1, 2, 3]
[1, 2, 3]
I believe this is fixed by #13
Yes, it does. This is one of the added tests in that pr
Fixed by #13
Outputting an array in a template produces incorrect output as the regular scala
.toString
method is called on the array contents instead of coercing the values to strings and generating the appropriate values.Input:
{{ [1, 2, 3] }}
Output:
Number(1.0),Number(2.0),Number(3.0)
Expected:
[1, 2, 3]