Handlebars
模板
{{#person}}
  {{firstname}} {{lastname}}
{{/person}}
准备脚本
Handlebars.registerHelper('blockHelperMissing', function(context, options) {
    return "Helper '"+options.name+"' not found. " 
      + "Printing block: " + options.fn(context); 
});
输入
{
  person: {
    firstname: "Yehuda",
    lastname: "Katz",
  },
}
输出
Helper 'person' not found. Printing block:   Yehuda Katz
上次更新: 11/2/2019,下午 8:47:47