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

Partials with context #94

Closed
steidinger opened this issue Nov 22, 2012 · 1 comment
Closed

Partials with context #94

steidinger opened this issue Nov 22, 2012 · 1 comment
Labels
Milestone

Comments

@steidinger
Copy link

I'm currently evaluating Handlebars.java as a possible micro-template engine for use in a legacy project and so far I'm very impressed. But today I stumbled across a difference between Handlebars.js and Handlebars.java:

Handlebars partials take a second parameter which becomes the context for the partial:
{{> person this}}
Source: Stackoverflow

When I try to do this in Handlebars.java it results in a syntax error. Could this be implemented in Handlebars.java?

@jknack
Copy link
Owner

jknack commented Nov 22, 2012

absolutely! I didn't known about it.

Thanks

jknack added a commit that referenced this issue Nov 26, 2012
@jknack jknack closed this as completed Dec 11, 2012
@jknack jknack mentioned this issue Mar 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants