cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[VOLT] Nested inheritance bug.

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

On nested inheritance content of blocks is lost.

a.html

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

b.html

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

c.html

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

Expected:

Main header C Header B Content for A

Renders as:

Main header C Content for A

eugene-p avatar Jan 11 '13 22:01 eugene-p

When will be fixed? Can't use volt due to this problem (temporarily switched to twig)

sirian avatar Feb 09 '13 10:02 sirian

This is fixed in the 1.0.0 branch, sorry for the delay

ghost avatar Feb 11 '13 09:02 ghost