﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
7438	Add keyword support to simple_tag and inclusion_tag	dougn	nobody	"
for a project I found it very useful to support named keyword args on simple and inclusion tags.

Example:
{{{
#!python

@register.simple_tag
def mytag(a, b=None, c=None):
    return {}

@register.inclusion_tag(""example.html"")
def inctag(data, **kwdargs):
    return kwdargs
}}}

{{{
{% mytag c=""hello"" a=3 %}
{% inctag var1=3 user=user foo=""bar"" %}

<!-- just a few of the errors detected as proper template errors -->
{% mytag c=5 %} <!-- template error! ""%s takes at least %s non-keyword arguments (%s given)"" -->
{% mytag 1 bad=4 %} <!-- template error! %s got an unexpected keyword argument '%s' -->
{% mytag 1 c=3 c=4 %} <!-- template error! %s got multiple values for keyword argument '%s' -->

}}}

contains complete error 
Including a patch for this, sans the unit tests. jezdez will help with that."	New feature	closed	Template system	dev	Normal	duplicate	keywords inclusion_tag simple_tag tags		Accepted	1	0	1	0	0	0
