1--TEST-- 2Exception for child templates defining content outside blocks defined by parent 3--TEMPLATE-- 4{% extends 'base.twig' %} 5 6Content outside a block. 7 8{% block sidebar %} 9 Content inside a block. 10{% endblock %} 11--TEMPLATE(base.twig)-- 12{% block sidebar %} 13{% endblock %} 14--EXCEPTION-- 15Twig\Error\SyntaxError: A template that extends another one cannot include content outside Twig blocks. Did you forget to put the content inside a {% block %} tag in "index.twig" at line 3? 16