Is Volt template provide Render Levels?
I have some code:
{# layout.volt #}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{% block title %}Welcome!{% endblock %}</title>
<link href="/css/style.css" type="text/css" rel="stylesheet" />
{% block CSS %}{% endblock %}
<script src="/js/jquery-1.11.0.min.js"></script>
<script src="/js/jquery-ui.min.js"></script>
{% block JS %}{% endblock %}
</head>
<body>
<div id="jsContent">
{% block content %}
{% endblock %}
</div>
</body>
</html>
{# NewEvent.volt #}
{% extends "layout.volt" %}
{% block title %}title{% endblock %}
{% block JS %}
<script src="/js/backend/some.js"></script>
{% endblock %}
{% block content %}
<form action="{{ form.getAction() }}" method="post" class="create-entity">
...
</form>
{% endblock %}
<?php
namespace Backend\Controllers;
class SomeController extends ControllerBase
{
public function newEventAction()
{
$form = new EventForm();
//this not works
$this->view->setRenderLevel(View::LEVEL_ACTION_VIEW);
$this->view->setVar('form', $form);
}
}
And finally, the output is a full page, with layout content.
How to make it work, without layout, only "block content"?