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

Doesn't allow dynamic partials #23

Closed
sitnin opened this issue Jun 10, 2015 · 3 comments
Closed

Doesn't allow dynamic partials #23

sitnin opened this issue Jun 10, 2015 · 3 comments

Comments

@sitnin
Copy link

sitnin commented Jun 10, 2015

Handlebars has a "dynamically named partials". It looks like {{> (partialTplName) }}

partialTplName is a context variable which hbs should interpolate and use proper partial.

I took handlebars-iron's example, extracted partial and passed it's name to the Template's context. If I use partial's filename directly or just printing partialTplName with {{partialTplName}} it looks like expected. If I trying to use DNP, template outputs zero characters without any errors.

@sunng87
Copy link
Owner

sunng87 commented Jun 11, 2015

Yes, the {{> (...)}} expression is not supported by handlebar-rust currently. I will find some time to add this feature.

@sitnin
Copy link
Author

sitnin commented Jun 11, 2015

It would be great! :)

@sunng87
Copy link
Owner

sunng87 commented Jun 14, 2015

@sitnin This should be supported now. Please cargo update and check if it works for you.

@sunng87 sunng87 closed this as completed Jul 31, 2015
JoNil pushed a commit to JoNil/handlebars-rust that referenced this issue Mar 19, 2016
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