Hi,
In this ticket https://code.djangoproject.com/ticket/13956 (Indefinite args
for simpletags and inclusion tags) a support for *args and **kwargs for
simple_tag, inclusion_tag and assignment_tag was added.
I think that one piece is still missing. How about allowing to pass
*args/**kwargs to templatetag arguments:
{% some_tag [positional_args] [named_args] *args **kwargs %}
where args is a list, kwargs is a dict?
With this new syntax, the resolution of variable arguments would had to be
moved to the render() phase, as well as some of the argument checking (e.g.
{% with kwargs %} case for empty kwargs).
What do you think?
Regards,
Przemek Czerkas
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/26414649-8562-44a4-99f8-d456fe0028d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.