我该如何使用mustache循环遍历这个内容?我有一个外部数组,其中包含数字索引。或者我该如何做其他事情并保持这种结构?
我尝试过:
<ul>
{{#cars}}
<li> {{#.}} {{.}} {{/.}}</li>
{{/cars}}
</ul>
数组
> Array(
> [cars] => Array
> (
> [0] => Array
> (
> [0] => Array
> (
> [id] => 343443
> [name] => Mazda
> )
>
> [1] =>
> (
> [id] => 45353
> [name] => Toyota
> )
> )
> [1] => Array
> (
> [0] => Array
> (
> [id] => 922424
> [name] => Camry
> )
> )
> )//end cars
> )