-1

How to use mustache for the following scenario:

el.html( can.view('ideasView', {ideas: records, photos: jQuery.parseJSON(users)}));

Is it possible to access photo by {{photos[id].photoUrl}}? I need to get photoUrl by ideas[i].Id when looping through ideas.

ramblinjan
  • 6,578
  • 3
  • 30
  • 38
Natallia
  • 157
  • 1
  • 9

1 Answers1

0

It's hard to answer this without knowing how your photos data is structured. But from how I'm interpreting your data structure from you question. You could try

{{#ideas}} {{id}} {{\ideas}}