Re: Custom tag keword arguments

2008-04-04 Thread Doug B
On Apr 4, 9:32 am, Matias Surdi <[EMAIL PROTECTED]> wrote: > Hi, > Is it possible to pass keyword arguments to a custom inclusion tag? I'm still back on .96, but as far as I know tags only support positional arguments. I made some helpers that kind of allow a combination of keyword and positional

Custom tag keword arguments

2008-04-04 Thread Matias Surdi
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