{% block foo %}
    {% set hi = there %}
    {% block bar %}
        {# hi is not set #}
    {% endblock %}
{% endblock %}