#14908: Add takes_context parameter to simple_tag decorator -----------------------------+---------------------------------------------- Reporter: julien | Owner: nobody Status: new | Milestone: Component: Template system | Version: 1.2 Keywords: | Stage: Unreviewed Has_patch: 0 | -----------------------------+---------------------------------------------- There is no "simple" way for accessing the context in a template tag. The only options are to use an inclusion_tag (which also requires the use of a template) or to create a Node/parser (which is tedious).
To address this, the consensus in (1) is to make `simple_tag` consistent with `inclusion_tag` by introducing a `takes_context` decorator parameter. (1) http://groups.google.com/group/django- developers/browse_thread/thread/fbf7d9fd8f256b17/ -- Ticket URL: <http://code.djangoproject.com/ticket/14908> 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 django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.