flask have 2 base html code example
Example: flask extends two base.html
{% include "base_layout.html" %}
<div>
... // write your code here
</div>
{% block body %}{% endblock %}
{% include "base_layout.html" %}
<div>
... // write your code here
</div>
{% block body %}{% endblock %}