0
votes

This is similar to the question asked in this post:How do you make a Handlebars helper that is aware of Ember bindings?

I want my customized Handlebars block helper to be aware of Ember bindings:

{{#myHelper my.binding}}
    show something here
{{/myHelper}}

But the helper receives my.binding as string instead of the value. How do I pass the value into the helper?

1
Use a component instead.Christopher Milne
What version of Ember?Daniel Kmak
@DanielKmak Ember version is 1.8.1Daiqian Zhang
@ChristopherMilne If the helper is really simple in logic, writting a component looks overkill?Daiqian Zhang

1 Answers

0
votes

You haven't posted your helper code, nor the versions you're using, so it's difficult to say what could be wrong. I would still refer to the documentation: http://guides.emberjs.com/v2.0.0/templates/writing-helpers/.