Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helperMissing no longer called for 0-arity helpers #17

Open
hypomodern opened this issue Feb 24, 2013 · 1 comment
Open

helperMissing no longer called for 0-arity helpers #17

hypomodern opened this issue Feb 24, 2013 · 1 comment

Comments

@hypomodern
Copy link
Collaborator

According to http://handlebarsjs.com/expressions.html, "A Handlebars helper call is a simple identifier, followed by zero or more parameters", which was the case as of handlebars.rb 0.3.2.

I had added a custom "helperMissing" helper to my Handlebars::Context subclasses that made use of this feature for simple property lookup on the object. As of 0.4.0, this no longer works: the helperMissing helper is simply not invoked unless there are one or more parameters supplied.

Here's a link to a commit on my project that illustrates this.

Is this by design, and the handlebars docs are outdated? Or is this a bug?

@devknoll
Copy link

devknoll commented Nov 7, 2014

It's a regression in Handlebars 1.3.0. The handlebars-source gem needs to be updated to 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants