0

I have a table like this:

<table>
<?php foreach($var as $val): ?>
<tr>
<?php foreach($val as $row): ?>
<td> ... </td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</table>

How can I code this with mustache?

Cœur
  • 37,241
  • 25
  • 195
  • 267
user2124857
  • 39
  • 1
  • 1
  • 9

1 Answers1

1

Assuming you're using the KOstache module, Kostache::factory() and assigning your multidimensional array in your controller. Then using an Implicit iterator to loop through all elements.

juco
  • 6,331
  • 3
  • 25
  • 42