On Tue, 2006-08-29 at 14:49 +0800, Slowness Chen wrote:
> simple_tag and inclusion_tag make writing simple template tags much more
> convenient.
> As the document says, "Another common type of template tag is the type that
> displays
> some data by rendering another template", e.g.
>
> <ul>
> {% for choice in choices %}
> <li> {{ choice }} </li>
> {% endfor %}
> </ul>
>
> But if there are many places in which you need to use inclusion_tag , it
> gets annoying that you have to
> extract all these *short and simple* snippets into separate template files.
> If simple_tag can also
> set context, that will be more convenient. Something like:
> @register.simple_tag(sets_context=True)
>
> Just some thoughts. any comments are welcome.
Seems reasonable to me. If you make a ticket for this and assign it to
me (mtredinnick in Trac), I'll handle this.
Cheers,
Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" 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-developers
-~----------~----~----~----~------~----~------~--~---