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