rabl icon indicating copy to clipboard operation
rabl copied to clipboard

Array of arrays problem

Open camol opened this issue 11 years ago • 13 comments

Hi

I'm facing a problem with rendering an array which contains another arrays. The array itself look like this:

@array = [[[2014, 138.92], [2015, 142.98]], [[2014, 141.57], [2015, 148.48]]]

And I want to achieve this:

[ [{ time: 2014, amount: 138.92 }, { time: 2015, amount: 142.98 }], [{ time: 2014, amount: 141.57 }, { time: 2015, amount: 148.48 }] ]

I'm trying using

collection @array

but I'm not able to move forward with the template. Please help.

camol avatar Jun 18 '13 15:06 camol