jood
jood

Reputation: 2397

Each loop in bi-dimensional array in jade for meteor

I'm using mquandalle/meteor-jade, but I can't seem to be able to loop in a bi dimensional array. The homeList function returns an [[objects],[objects],[objects]] So I want to do

each homeList
  //do stuff
    each object
      //do other stuff

But it doesn't work.

Upvotes: 1

Views: 120

Answers (1)

David Weldon
David Weldon

Reputation: 64312

The context of the inner loop is this:

each homeList
  //do stuff
    each this
      //do other stuff

In an upcoming release there will be a way to assign names in such cases.

Upvotes: 1

Related Questions