title: Dynamic Includes
body: <p>I've seen some posts saying you can only pass literal strings to Jekyll's front matter include statement like so:</p>
  
  <pre><code>{% include mypage.ext %}
  </code></pre>
  
  <p>However, I have the following HTML layout for pretty much every page:</p>
  
  <pre><code>    &lt;section id="feature"&gt;
          &lt;div class="container_12"&gt;
              &lt;div class="grid_12 alpha omega"&gt;
                  {% include myfile.ext %}
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/section&gt;
  
      &lt;section id="main"&gt;
          &lt;div class="container_12"&gt;
              &lt;div class="grid_12 alpha omega"&gt;
                  {{ content }}
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/section&gt;
  </code></pre>
  
  <p>This would be painful to have to include in every single page in order to achieve the layout I'm looking for. The included file would be relevant to the current page, so I was hoping someone knew of some kind of way to do this.  Of course it'd be something along the lines of:</p>
  
  <pre><code>{% include {{page.file}} %}
  </code></pre>
  
  <p>I've seen some other posts saying this just can't happen though.</p>
  
  <p>So, I just want to be able to dynamically load includes in Jekyll.</p>
  
  <p>Edit: <a href="https://github.com/mojombo/jekyll/issues/176">https://github.com/mojombo/jekyll/issues/176</a></p>