{% extends 'a.html' %} {% block block1 %}from template b.html{% endblock %} {% block block5 %} contents of nested block from b.html {% block block7 %} new nested block introduced in b.html {% endblock %} {% endblock %}