Is there a way to register a global helper file for Handlebar.js?

前端 未结 0 1677
春和景丽
春和景丽 2021-01-14 14:31

I use Handlebar.js to render a template.

function renderTemplate(data, templateName) {
  const html = fs.readFileSync(`${__dirname}/templates/template2.hbs`,          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题