﻿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
10003	if and extends in template	0ptr	nobody	"{{{

{% if mobile %}
{% extends 'base_mobile.html' %}
{% else %}
{% extends 'base_normal.html' %}
{% endif %}


}}}

Throws following exception:


{{{
Exception Type:	TemplateSyntaxError
Exception Value:	
Invalid block tag: 'else'
Exception Location:	/home/dsduser/django-synble/django/template/__init__.py in invalid_block_tag, line 333
}}}

I think this should be supported. Second option is to write include correctly so that include does not broke inheritance. E.g.:

basbase.html: has block 

base.html: include ""basebase.html"" 

logic.html: extends ""base.html"", inheritance of basbase.html block does not work here anymore. 




"		closed	Template system	1.0		invalid			Unreviewed	0	0	0	0	0	0
