title: Chameleon template looping
body: <p>I tried to create template using chameleon. Here is a code snipet.</p>
  
  <p>Calling module <code>runtemp.py</code>:</p>
  
  <pre><code>delete_list=[]
  delete={'Name':'aaa','Sirname':'bbb','Friends':['ccc','ddd','eee']}
  delete_list.append(delete)
  templates = PageTemplateLoader(os.path.join(path, "templates"))
  template = templates["delete_user.pt"]
  print template(tdelete_list=delete_list)
  </code></pre>
  
  <p>Template file <code>delete_list.pt</code>:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;Delete&gt;
     &lt;DeleteRequest&gt;
  
         &lt;DeleteItems tal:repeat="deletions tdelete_list"&gt;
  
             &lt;Deleteuser tal:repeat="delete repeat.deletions" &gt;
  
                  &lt;Name tal:content="repeat.delete.Name"&gt;&lt;/Name&gt;
                  &lt;Sirname tal:content="repeat.delete.Sirname"&gt;&lt;/Sirname&gt;
                   &lt;Friends&gt;
                        &lt;Friend tal:repeat="friend repeat.delete.Friends"&gt;
                                 &lt;Value tal:content="friend"&gt;&lt;/Value&gt;
                         &lt;/Friend&gt;
                   &lt;/Friends&gt;
  
             &lt;/Deleteuser&gt;
  
       &lt;DeleteItems&gt;
  
      &lt;/DeleteRequest&gt;
  
   &lt;/Delete&gt;
  </code></pre>
  
  <p>Output i got:</p>
  
  <pre><code> &lt;Delete&gt;
          &lt;DeleteRequest&gt;
  
             &lt;DeleteItems&gt;
  
  
  
             &lt;/DeleteItems&gt;
    &lt;/DeleteRequest&gt;
   &lt;/Delete&gt;
  </code></pre>
  
  <p>My problem is the middle tags are not getting printed; what is wrong?</p>