使用玉的流星圈中的对象循环数组

时间:2016-01-14 21:18:01

标签: meteor pug

当使用火焰和把手时,我可以按如下方式遍历一系列物体:

{{#each cars}}
    <p>{{color}}, {{brand}}</p>
{{/each}}

如何使用jade执行此操作?

1 个答案:

答案 0 :(得分:1)

你有一些选择:

each cars
  p {{color}}, {{brand}}

each cars
  p
    | You can also do this:
    | #{color}, {{brand}}

class ManagerViewModel
{
    string Name;
    long salary;
    string workType;
    //8 more such properties
    List<EmployeeViewModel> Dependents;
}
class EmployeeViewModel
{
    string Name;
    long salary;
    string workType;
    //8 more such properties
    List<EmployeeViewModel> Dependents;
}