How do I load different partials dynamically using handlebars templates?
问题 I'm loading a template with the following data: "slides": [ { "template": "video", "data": { "video": "" } }, { "template": "image", "data": { "image": "" } } ] in my template I want to loop over these slides and based on the configured template I want to load a partial {{#each slides}} {{> resources_templates_overlay_video }} {{/each}} How can I make this partial load dynamically (based on the configured template)? I'm using the require-handlebars-plugin 回答1: As far as I can tell, hbs