Handlebars:
Template
{{#each people}}
   {{.}} lives in {{lookup ../cities @index}}
{{/each}}
Preparation-Script
// Handlebars.registerHelper('loud', function(string) {
//    return string.toUpperCase()
// });
Input
{
  people: ["Nils", "Yehuda"],
  cities: [
    "Darmstadt",
    "San Francisco",
  ],
}
Output
   Nils lives in Darmstadt
   Yehuda lives in San Francisco
마지막 업데이트: 2024. 6. 5. 오후 11:37:24