Hi,
Is it possible to pass keyword arguments to a custom inclusion tag?
example:
@register.inclusion_tag('shared/form.html')
def form(form, action="",method="POST"):
return {"form": form,
"action": action,
"method": method}
I'd like to call this from a template, using something like this:
{{ form myform,method="POST"}}
What is the correct way to do this?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---