Handlebars:
Template
{{#with city}}
{{city.name}} (not shown because there is no city)
{{else}}
No city found
{{/with}}
Preparation-Script
// Handlebars.registerHelper('loud', function(string) {
//    return string.toUpperCase()
// });
Input
{
  person: {
    firstname: "Yehuda",
    lastname: "Katz",
  },
}
Output
No city found
마지막 업데이트: 2024. 6. 5. 오후 11:37:24