cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[NFR] [VOLT] Nested inheritance does not work

Open eugene-p opened this issue 13 years ago • 1 comments

If template A extends B and template B extends C on rendering of template A Only content of template B is included.

a.html

{% extends "b.html" %}
{% block content %}
    Content for A
{% endblock %}

b.html

{% extends "c.html" %}
{% block header%}Header B{% endblock %}
{% block content %}{% endblock %}

c.html

Main header C
{% block header%}{% endblock %}
{% block content %}{% endblock %}

Expected:

Main header C Header B Content for A

Renders as:

Header B Content for A

eugene-p avatar Dec 05 '12 23:12 eugene-p

Hi eugene, this is now supported in 0.8.0, thanks

ghost avatar Dec 16 '12 11:12 ghost