title: Reusing django templates?
body: <p>I find django's template language very limiting. Following along with django's DRY principle, I have a template that I'd like to use in many other templates. For example a patient list:</p>
  
  <pre><code>    {% for physician in physicians.all %}
          {% if physician.service_patients.count %}
              &lt;div id="tabs-{{ forloop.counter }}"&gt;
                  {% include "hospitalists/patient_list.html" %}
              &lt;/div&gt;
          {% endif %}
      {% endfor %}
  </code></pre>
  
  <p>The problem is that the patient_list template is expecting a list of patients named <code>patients</code>. How can I rename <code>physician.service_patients</code> to <code>patients</code> before including the template?</p>
  
  <p>Thanks,
  Pete</p>