Handlebars:
Template
{{firstname}} {{loud lastname}}
Preparation-Script
Handlebars.registerHelper('loud', function (aString) {
    return aString.toUpperCase()
})
Input
{
  firstname: "Yehuda",
  lastname: "Katz",
}
Output
Yehuda KATZ
最后更新: 1/11/2020, 3:46:21 PM