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
Ability to re-render the partial without rendering the parent along with the partials template #1612
Comments
Partial rendering is not a use-case for Handlebars. In your case, you can do it yourself using multiple templates instead of partials. But I would strongly suggest to use Ember (if you want to use Handlebars-syntax), Vue.js, React or Angular for in-browser rendering. |
I don't agree with this view. One of the reason handlebar is not able to render partials is due to the assumption that all data including the partials should be provided to the parent template. If one has to use multiple templates which is the current workaround, namely have these template present separately. The parent can't include these partials, we need to know the Ids where the rendered content of the template should go. Handlebar Pass template 1 data and render Template 1. Then using Jquery or other framework this needs to be substituted into parent content id 1. Basically we now need to do this outside nullifying the enhanced use cases for partials for dynamic content. I am closing this as the current direction for partials is to keep it simple. If enhanced we could relook at this use case. |
I have never used it myself, but maybe 'glimmer-vm' is more appropriate to your case. |
Its use case is to render and incrementally update a handlebars template in a website. It is used by ember.js |
When using partials, the structure of the view or page would be as follows
View1
partial1
partial2
partial3
After rendering the view1 if due to a selection one needs to re-render the partial1, there should be an ability to render only this section instead of re-rendering the entire View1.
The text was updated successfully, but these errors were encountered: