Handlebars parse error while compiling template

白昼怎懂夜的黑 提交于 2019-12-05 02:11:29

You are calling your getPercent-helper with a hash in front of it which makes it a block-statement which then in turn would need to be closed using {{/getPercent}}. Since there shouldn't be any need for it to be a block you probably could just remove the hash from your template.

<div class="chart" data-percent="{{getPercent reward_point.point_achived reward_point.point_available}}">
  <span>{{getPercent reward_point.point_achived reward_point.point_available}}%</span>
  <span style="font-size:.5em;display:inline-block;">{{reward_point.point_achived}}</span>
  <span style="font-size:.5em; color:#005390; display:inline-block;">/{{reward_point.point_available}} RP</span>
</div>
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!