title: How do I load different partials dynamically using handlebars templates?
body: <p>I'm loading a template with the following data:</p>
  
  <pre><code>"slides": [
      {
          "template": "video",
          "data": {
              "video": ""
          }
      },
      {
          "template": "image",
          "data": {
              "image": ""
          }
       }
  ]
  </code></pre>
  
  <p>in my template I want to loop over these slides and based on the configured template I want to load a partial</p>
  
  <pre><code>{{#each slides}}
      {{&gt; resources_templates_overlay_video }}
  {{/each}}
  </code></pre>
  
  <p>How can I make this partial load dynamically (based on the configured template)?</p>
  
  <p>I'm using the <a href="https://github.com/SlexAxton/require-handlebars-plugin" rel="nofollow noreferrer">require-handlebars-plugin</a></p>