danwrong/liquid-inheritance — Issue #3: Nested blocks don't render properly
Author: tbak42
Created: 2012-02-07 11:25:16+00:00
State: open

If you have a block inside of another block, it will not render properly if you then redefine it in another file.

Example!

-----------

_base.liquid:
{% block test_a %}
Top of A
{% block test_b %}
This should be replaced
{% endblock %}
Bottom of A
{% endblock %}

---------------------

foo.liquid:
{% extends "base" %}
{% block test_b %}
REPLACED TEST_B
{% endblock %}

---------------

The text output should be:
Top of A
REPLACED TEST_B
Bottom of A

But instead it is:
Top of A
This should be replaced
Bottom of A

I think that the expected behavior is what the Django template system does...