title: Use embed variables in Expression Engine's channel tag?
body: <p>I'm building a website that makes heavy use of image carousels. Each section has a different carousel with different slides.</p>
  
  <p>Therefore, I've created an embed called <code>global_embeds/image_carousel.html</code> that contains the logic. It looks like this:</p>
  
  <pre><code>&lt;div class="carousel"&gt;
  {exp:channel:entries channel="homepage_carousel"}
    &lt;div class="slide"&gt;
      &lt;img src="{image}" alt="{title}" /&gt;
    &lt;/div&gt;
  {/exp:channel:entries}
  &lt;/div&gt;
  </code></pre>
  
  <p>As you can see, it's a simple HTML snippet that generates a <code>&lt;div&gt;</code> for each item. The problem, however, is that I want to use an embed parameter in the <code>exp:channel:entries</code> tag.</p>
  
  <p>I tried calling the embed in my parent template like so:</p>
  
  <pre><code>{embed="global_embeds/image_carousel" carousel_channel="homepage_carousel"}
  </code></pre>
  
  <p>And changing my embed template to this:</p>
  
  <pre><code>...
  {exp:channel:entries channel=embed:carousel_channel}
  ...
  </code></pre>
  
  <p>But it doesn't seem to be passing the variable value through as I'd like, instead just showing <strong>all</strong> entries in my carousel regardless of channel.</p>
  
  <p>Am I going about this the right way? Or is there a better way to achieve what I'm after in Expression Engine?</p>