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
Pass partials in partials #1360
Comments
With helpers, you can write I would probably try to write a custom block helper for something of this complexity. |
parse channel worked, but you're correct, the user_name partial did not |
@nknapp what about supporting partials in subexpressions? Like |
@xPaw You could create a new issue for that. This one was more a question. Edit: replace link to blog post by link to official documentation |
@xPaw but new features are currently on hold, until we have a spec for the handlebars languages |
@nknapp how long until the spec is complete? where can I follow the progress? |
see #1277 |
Closing due to inactivity |
Kind of a unique case, but I imagine there's a way to accomplish what I want. I'm currently localizing my program with i18next, and have a template like so:
In English, the above is perfect. However in other languages, the order may be different.
Thus, something like
{{translate 'invited' user={{> ../user_name nick=from}} channel={{parse channel}}}}
would be ideal, where I could useoptions.hash.user
to fetch the rendered template.Is there a way to accomplish this?
The text was updated successfully, but these errors were encountered: