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