How do I use an handlebars #each call for an object with arrays of objects?

So I have an object that’s structured like this:

menu = {
  classic: [
    {p1: ..., p2: ...}, {p1: ..., p2: ...}
  ],
  classic2: : [
    {p1: ..., p2: ...}, {p1: ..., p2: ...}
  ]
}

An object where each value is an array of objects. How do I use an handlebars #each call to get to menu.classic[0].p1, for example? Can I nest multiple #each calls to iterate over every array index in every object value?

1 thought on “How do I use an handlebars #each call for an object with arrays of objects?”

Leave a Comment