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.






--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to