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/templates/#include
Hope it helps,
G
On 11/4/06, Steve Wedig <[EMAIL PROTECTED]> wrote:
>
> 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 %}
>
> Thanks,
> Steve
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---