jinja inheritance




    {% block head %}
    
    {% block title %}{% endblock %} - My Webpage
    {% endblock %}


    
{% block content %}{% endblock %}

Here is what the above code is Doing:
1. The {% block %} and {% endblock %} tags define a block that child templates can fill in.
2. The {% extends %} tag tells the template engine that this template “extends” another template.
3. The {% block %} tags not only define blocks, but also tell the template engine that a child template may override those blocks.
4. The {% block %} tags also act as placeholders for content. Anything between {% block %} and {% endblock %} is shown in the parent template if the child template doesn’t define the corresponding block.
5. The {% extends %} tag should be the first tag in the template.