-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
support passing hash to partials #357
Comments
Same problem here, but two things to note:
This is because Handlebars.java 2.0 actually defaults to using handlebars.js 1.3 (which seems crazy to me)
From what I can tell, Handlebars.java 2.0 is for all intents and purposes still just Handlebars 1.3. Someone please tell me I'm missing something... |
Guys, I will try to find some time and do these changes. I've been busy working on my new project: jooby But also, handlebarsjs 1.x has been around for years! and now in just a few month there is a 2.x and 3.x versions :S The reason of keep using handlebars 1.3 in handlebars 2.0 was backward compatibility, but I think I will change this in next release. @jfbrennan always forgot to update the Spring module :S but you are not lost. There is a workaround: HandlebarsViewResolver viewResolver = new HandlebarsViewResolver() {
@Override
protected Handlebars createHandlebars(URLTemplateLoader templateLoader) {
Handlebars hbs = super.createHandlebars(templateLoader);
hbs.withJsFile("...");
return hbs;
}
}; Thanks |
Ah, duh! Thanks man |
@mattkime nevermind, I think you already understand what I'm just learning which is that |
duplicate of #350 |
see handlebars-lang/handlebars.js#182
support {{> partialName hashKey="foo"}}
(correct me if i'm wrong, but i attempted to use this feature and got an error so i assume its not supported. this is new in handlebars.js 2.0)
The text was updated successfully, but these errors were encountered: