Use the {% with %} template tag for that:

{% with variable|some_filter as some_list %}
   {% for el in some_list %}
       {% do_something el %}
   {% endfor %}
{% endwith %}

Regards,
Aidas Bendoraitis aka Archatas


On 6/25/07, Manuel Meyer <[EMAIL PROTECTED]> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Hey,
>
> is it possible, to send a output, generated by a filter pipeline
> chain to a template tag?
> I want to split a page's tag, that is already processed by the
> reStructuredText filter and a link generation filter, in several
> subtexts to mix it with the page's images.
>
> Thanks!
> Manuel
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (Darwin)
>
> iQEVAwUBRoACqzOKNHIOcnYMAQj9PAgAsXDuV+ggJ0yPh8+l8D2enRW/LrMxK+wB
> fvN1RjCDlO06htexWJcRIttfgjq3yPhXOGbNOnu2GFZ/gRdstofKICOGMPGai0A5
> 8j8dzhgaK+684A5heTsUlcvgeRacEIYFmqWaLIWi0dKV8JxibbFbARt0YCbQUJF6
> znGyfHiNcOR2EGMfmyyNZGzDJz5xX3z68OaaApjbTzDVU7zuubkZYvV6af/AOanO
> q0hEJ5BmdwjYNTxsT3hEbablu+tWtkHA/RjI93AV1augoIzHFvuEzp6Jx3DtrSf9
> 9MmMHoYafkERrcqo0q13P07IPdz1QMs4KYPIr0xMCt4XlSBlXXkSiA==
> =V10Y
> -----END PGP SIGNATURE-----
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to