#1105: [patch] simple_tag decorator enhancement
-----------------------------------------------+----------------------------
Reporter: [email protected] | Owner: julien
Status: new | Milestone:
Component: Template system | Version:
Resolution: | Keywords:
Stage: Design decision needed | Has_patch: 1
Needs_docs: 1 | Needs_tests: 1
Needs_better_patch: 1 |
-----------------------------------------------+----------------------------
Changes (by semenov):
* cc: [email protected] (added)
Comment:
That is just so unfair that register.inclusion_tag does accept
takes_context=True and register.simple_tag doesn't. That leads to simple
yet inefficient tags that render from a template just to be able to access
the context. (The alternative is to create monstrous full-blown Node
classes which is an overkill in most situations).
--
Ticket URL: <http://code.djangoproject.com/ticket/1105#comment:19>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---