wolfendale / scala-nunjucks

5 stars 1 forks source link

Printing arrays outputs incorrectly #5

Closed wolfendale closed 4 years ago

wolfendale commented 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.

Input: {{ [1, 2, 3] }}

Output: Number(1.0),Number(2.0),Number(3.0)

Expected: [1, 2, 3]

chrisjameswright commented 4 years ago

I believe this is fixed by #13

daniel-manning commented 4 years ago

Yes, it does. This is one of the added tests in that pr

wolfendale commented 4 years ago

Fixed by #13