Closed belackriv closed 8 years ago
Thanks, will look into this!
Same problem here, registered helpers do not work in 1.2.1. Downgraded to 1.1 as workaround.
@belackriv @Schlaefer Remember that the plugin is looking at the runtime environment for the helpers, so make sure in your code you are using:
import Handlebars from 'handlebars/handlebars.runtime';
Handlebars.registerHelper(/* helper stuff */);
I've updated the README with this stuff. Thanks for all the help! Let me know if you still have issues.
@davis That was the issue, thanks for pointing out.
I can't seem to get registered helpers to run with the latest version. I'm pretty sure this has something to do the the precompile, since when I change hbs.js to this:
they start working again. I don't know enough about bundling and handlebars to know how this will break things in the future though. Any advice would be appreciated.