Could you show a simple with both the XML and the render function?<div>It&#39;s not perfectly clear from the new docs how do you define the loop start/end in the template....</div><div><br></div><div>Cheers,</div><div>Jacek<br>
<br><div class="gmail_quote">On Wed, Oct 12, 2011 at 5:48 PM,  <span dir="ltr">&lt;<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On 09:43 pm, <a href="mailto:jacek99@gmail.com">jacek99@gmail.com</a> wrote:<br>
&gt;Looking at the (somewhat sparse) docs for twisted web templates:<br>
&gt;<a href="http://twistedmatrix.com/documents/current/web/howto/twisted-" target="_blank">http://twistedmatrix.com/documents/current/web/howto/twisted-</a><br>
&gt;templates.html<br>
&gt;<br>
&gt;I see no mention of loops, like in Jinja2:<br>
&gt;<br>
&gt;{% for item in items %}<br>
&gt;&lt;sometag&gt;{{item.someproperty}}&lt;/sometag&gt;<br>
&gt;{% endfor %}<br>
&gt;<br>
&gt;Is something like this supported?<br>
<br>
</div></div>See the recently added documentation on just this topic:<br>
<br>
<a href="http://twistedmatrix.com/trac/changeset/32754" target="_blank">http://twistedmatrix.com/trac/changeset/32754</a><br>
<br>
Jean-Paul<br>
<br>
_______________________________________________<br>
Twisted-web mailing list<br>
<a href="mailto:Twisted-web@twistedmatrix.com">Twisted-web@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web</a><br>
</blockquote></div><br></div>