-
Notifications
You must be signed in to change notification settings - Fork 49
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
Handlebars: View methods not called #34
Comments
Could I trouble you to write a failing test case for this? I'll take a look at it, but we do have a test that would seem to cover this case already: https://github.com/agoragames/stache/blob/master/spec/controllers/handlebars_controller_spec.rb#L18 I'll try to reproduce on my own time soon, too, but with a failing test that will happen more quickly :). Cheers! |
I've been digging a bit through the sources of stache and handlebars. It seems that handlebars-0.5.0 does not implement "helperMissing". I was using stache v1.0.3 with Rails 3 and Ruby 1.9.3. However, when I try to use version '0.4.0' with handlebars 0.4.0 I am getting an exception |
Related? cowboyd/handlebars.rb#17 |
@czarneckid definitely looks like it could be. I'll have to look at handlebars-0.5.0 this weekend. |
Ran into this today. It's a regression in Handlebars 1.3.0. Handlebars.rb would need to be updated to the 2.0 handlebars-source gem. |
When using mustache, I can directly call methods from the View class inside of a template:
This results to:
When using handlebars, this methods are not called:
This results to:
The expected behaviour is to render the same as the mustache version.
The text was updated successfully, but these errors were encountered: