mitsuhiko/jinja2 — pull request #84 by paradoxxxzero (2012-01-05 16:44:54+00:00)
Title: Support included blocks override

This commit fix inheritance with included blocks.
Consider these templates:

**A.jinja2**
I am A
{% include 'I.jinja2' %}

**I.jinja2**
Who are you ?
{% block whoami %}
I am I
{% endblock %}

**B.jinja2**
{% extends 'B.jinja2' %}
{% block whoami %}
I am B
{% endblock %}

As of now, rendering **B.jinja2** would output:
I am A
Who are you ?
I am I

This patch allow B to override I block, the output will be instead:
I am A
Who are you ?
I am B