Could you show a simple with both the XML and the render function?<div>It'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"><<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>></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>
>Looking at the (somewhat sparse) docs for twisted web templates:<br>
><a href="http://twistedmatrix.com/documents/current/web/howto/twisted-" target="_blank">http://twistedmatrix.com/documents/current/web/howto/twisted-</a><br>
>templates.html<br>
><br>
>I see no mention of loops, like in Jinja2:<br>
><br>
>{% for item in items %}<br>
><sometag>{{item.someproperty}}</sometag><br>
>{% endfor %}<br>
><br>
>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>