Is there a way to select certain elements in a JSON view based on an sub-element's string value using Linked In's version of dust.js? For example, if I had this JSON view:
{
people: [
{ name: "Fred", type: "a" },
{ name: "Harry", type: "a" },
{ name: "Linda", type: "a" },
{ name: "Mary", type: "b" },
{ name: "Bob", type: "b" },
{ name: "Joey", type: "b" }
]
}
and I wanted this output:
Fred
Harry
Linda
how would the template differ from this simple one?
{#people}
<br/>{name}
{/people}
This would be executed in a browser.