How do I Register Meteor Spacebars Helpers?

前端 未结 1 598
没有蜡笔的小新
没有蜡笔的小新 2021-01-07 04:16

Trying to make some simple handlebars helpers

Handlebars.registerHelper(\'if_eq\', function(context, options) {
  if (context == options.hash.compare)
    re         


        
相关标签:
1条回答
  • 2021-01-07 04:27

    the Handlebars object is only available on the client. So make sure you have if (Meteor.isClient) { } wrapped around the helper registration code

    0 讨论(0)
提交回复
热议问题