[Twisted-web] Twisted web templates: do they support loops?

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Wed Oct 12 17:48:47 EDT 2011


On 09:43 pm, jacek99 at gmail.com wrote:
>Looking at the (somewhat sparse) docs for twisted web templates:
>http://twistedmatrix.com/documents/current/web/howto/twisted- 
>templates.html
>
>I see no mention of loops, like in Jinja2:
>
>{% for item in items %}
><sometag>{{item.someproperty}}</sometag>
>{% endfor %}
>
>Is something like this supported?

See the recently added documentation on just this topic:

http://twistedmatrix.com/trac/changeset/32754

Jean-Paul



More information about the Twisted-web mailing list