﻿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
12008	included templates' blocks do not get processed as if they were from the context of the including page	tim@…	conor	"Consider the following example:

A.html:
{{{
{% block B %}{% include 'B.html' %}{% endblock %}
}}}

B.html:
{{{
{% block test %}this is a test default from B{% endblock %}
}}}

C.html:
{{{
{% extends 'A.html' %}
{% block test %}this is the test block from C{% endblock %}
}}}

This results in the ""test"" block being the default from the B template, as opposed to getting overriden with the test block that's defined in C.

However, the following works:

A.html:
{{{
{% block test %}this is a test default from B{% endblock %}
}}}

C.html:
{{{
{% extends 'A.html' %}
{% block test %}this is the test block from C{% endblock %}
}}}

In this case the test block from C is correctly used.

The documentation states:

{{{
If an included template contains any template code — such as tags or variables — then it will get evaluated with the context of the template that’s including it.
}}}

If this were true I believe the top example should be valid."	Cleanup/optimization	closed	Documentation	dev	Normal	fixed	include block		Accepted	1	0	0	0	0	0
