I'm using the automatic hierarchical view rendering. In my views/index.volt I have a block defined for extra javascript the action view might add:
<div class="container">
{{ content() }}
</div>
{{ javascript_include('js/bootstrap.min.js') }}
{{ javascript_include('js/jquery-2.0.3.min.js') }}
{{ javascript_include('js/knockout-2.3.0.min.js') }}
{% block scripts %}{% endblock %}
</body>
</html>
In action view there's a definition for knockout viewmodel:
{% block scripts %}
<script type="text/javascript">
// ...
</script>
{% endblock %}
But the scripts block ends up being printed with the content before the javascript includes. Have I understood the block usage correctly? Is the block not supported with the automatic hierarchical view rendering and should I explicitly define the inheritance to get it working? Using phalcon 1.2.3.