I have an array of values and object of key-value pairs:
var array = ["first", "second"];
var object = {
"first":"firstvalue",
"second":"secondValue"
};
I would like to iterate through array and base on the value, pick the value from the object, something like this (I know this doesn't work, but I'm looking at similar approach):
{{#array}}
<tr><td>{{.}}</td><td>{{object[.]}}</td></tr>
{{/array}}
So that output would be:
<tr><td>first</td><td>firstvalue</td></tr>
<tr><td>second</td><td>secondValue</td></tr>