Is there a generally \"good\" way to achieve this functionality? I have read about the \'use\' tag, which seems like the best option so far, but I still don\'t like that it
I got it to work with a very simple hack:
Basically it behaves this way because without a {% extends "foo.html.twig" %}
it doesn't understand the blocks and simply renders them in place.
So let's extend... nothing:
{% extends "nothing.html.twig" %}
This nothing is really just 1 block:
# nothing.html.twig
{% block main %}
{% endblock %}
The only thing is that you need to wrap everything in a block, this fake "main" block.