Handlebars:
Template
{{> myPartial parameter=favoriteNumber }}
myPartial
[rename] [delete]
The result is {{parameter}}
Preparation-Script
// Handlebars.registerHelper('loud', function(string) {
//    return string.toUpperCase()
// });
Input
{ favoriteNumber: 123 }
Output
The result is 123
最后更新: 2020/2/26 16:01:18