Hi,
I use the include tag:
{% for object in object_list %}
{% include "myapp/object.html" %}
{% endfor %}
The nice things is that include renders the template with the current
context, that is automagically passed to the myapp/object.html
template:
http://www.djangoproject.com/documentation/
Hello,
I've got a list of items that I'm passing to a template. For every
item, I'd like to render it as "object" in another template. Is this
or something like this possible?
it would look something like this...
T1
{% for object in object_list %}
{% apply "t2.html" object %}
{% endfor
2 matches
Mail list logo