I'm thinking about this:
{# base.volt #}
{% block panel %}
<div class="panel">
<div class="panel-heading">
{% block panel_heading %}
<h1>title</h1>
{% endblock %}
</div>
<div class="panel-body">
{% block panel_body %}
<p>{{ content() }}</p>
{% endblock %}
</div>
</div>
{% endblock %}
{% extends 'base.volt' %}
{% block panel_heading %}
<h2>title</h2>
{% endblock %}
Phalcon\Mvc\View\Exception with message Embedding blocks into other blocks is not supported
Github issue: https://github.com/phalcon/cphalcon/issues/329
There was a roadmap on phalcon blog at one time which had said it was planned to be implemented in the 2.x branch, but I cant find the link.
Is there any barrier to implement it beside the volt engine? If not, I might start meddling with it, cause we really need it in our project... :]
(I presume it won't be easy either way, otherwise we would already have it)