How to make nested loops with Each tag?


I want to make nested loops, that look like this:

@each(object in objects)
	@each((column, key) in columns)
	  <td>{{ object[key] }}</td>

But it seems that the object does not fall into the inner loop.

How to do what I want?


Nested loops are rather poorly documented. You can access the outer variable as $parent.object

More information


Here you have a full example, about using nested foreachs


It works! Thank you very much!