﻿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
5149	make template tag variables that can't be resolved pass as None	Jack Moffitt <metajack@…>	nobody	"This is an enhancement request.  In the same way that {{ variable }} will generate a blank string if variable does not exist, it would be nice if this happened also for template tag variables as well.  For instance:

{% sometag list.0.name %}

would call the sometag inclusion tag with """" or None as the first variable if list is empty.  This makes the template far simpler as it gets rid of:

{% if list %}
  {% sometag list.0.name %}
{% else %}
  {% sometag """" %}
{% endif %}

Right now the variable resolver generates an exception, which triggers the 500 logic or the traceback debug view since list has no 0 index.  I'm sure there are other situations when this behavior would be desirable."		closed	Template system	dev		wontfix	feature_request		Design decision needed	0	0	0	0	0	0
