title: inherited python vars in nested tornado templates
body: <p>I am trying to nest tornado templates using {% include %}:</p>
  
  <pre><code>&lt;html&gt;
      {% for headline in HL['headlines'] %} 
          {% include 'hl_1.html' %}
      {% end %}
      &lt;/ul&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The template above works, and the sub-template above works. What I cannot figure out how to do is pass in the name of the sub-template (e.g.replacing 'hl_1.html' with a string parameter in the parent template's namespace). AFter reviewing the template.py source code it seems that  {% include accepts a string and nothing else. But it would be fantastic if one could dynamically specify sub-templates.</p>
  
  <p>Has anyone tried this and succeeded?</p>
  
  <p>thanks</p>