Handlebars:
Template
{{#each people}}
   {{print_person}}
{{/each}}
Preparation-Script
Handlebars.registerHelper('print_person', function () {
    return this.firstname + ' ' + this.lastname
})
Input
{
  people: [
    {
      firstname: "Nils",
      lastname: "Knappmeier",
    },
    {
      firstname: "Yehuda",
      lastname: "Katz",
    },
  ],
}
Output
   Nils Knappmeier
   Yehuda Katz
마지막 업데이트: 2024. 6. 5. 오후 11:37:24