sonata-project/SonataAdminBundle — pull request #891 by mweimerskirch (2012-07-23 16:50:13+00:00)
Title: Wrapped the content in a "{% block %}" to allow for easier customization

This simple change allows the "standard_layout.html.twig" to be reused more easily. e.g. for custom administration pages.

In a new controller you could now use something like the following:

public function indexAction()
{
return [
'admin_pool' => $this->get('sonata.admin.pool')
];
}

with a template as simple as this:

{% extends "SonataAdminBundle::standard_layout_utopolis.html.twig" %}

{% block content %}
...
{% endblock %}