﻿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
9173	Conditional content of template blocks	while0pass	nobody	"It will be very good if there is some possibility to mark sort of ""conditional content"" of the template blocks ({% block .. %}), that is the content that is displayed only if in a child template the block has some content. For instance, we have 2 templates:

{{{
parent.html

<table>
  <tr>
     <td>{% block firstcol %}{% endblock %}</td>
     <td>{% block secondcol %}{% endblock %}</td>
     {% block thirdcol %}<td>{% blockcontent %}</td>{% endblock %}
  </tr>
</table>
}}}


{{{
child.html

{% extends 'parent.html' %}

{% block firstcol %} 1 {% endblock %}
{% block firstcol %} 2 {% endblock %}

}}}

We should have such an output text:

{{{
<table>
  <tr>
     <td> 1 </td>
     <td> 2 </td>
  </tr>
</table>
}}}

but not the following:

{{{
<table>
  <tr>
     <td> 1 </td>
     <td> 2 </td>
     <td></td>
  </tr>
</table>
}}}

"	New feature	new	Template system	dev	Normal			masterjakul@… FunkyBob	Someday/Maybe	1	0	0	1	0	0
