base.html Content
<!DOCTYPE HTML><HTMLLang= "en"><Head> <MetaCharSet= "UTF-8"> <title>Title</title> <style> * {margin:0;padding:0; } </style></Head><Body>{% include ' include.html '%} calls the include.html template-----------------Name-------------------<BR><P>{% block name%} block blocks named name{% endblock%}</P></Body></HTML>
Extends page content:
{% extends ' base.html '%} {% block name%} Don Someone (replace the contents of Base.html block blocks) {% Endblock%}
Include page content:
< b > This is the content of the include call </b>
Ps:extends, you cannot include, but you can include in the extends block
{% extends ' base_for_extend.html '%} {% block name%} Don Someone {% include ' include_for_basse_extend.html '%} {# requires an include block to be valid #}{% Endblock%}
Comment Syntax for HTML
{# single Comment #}-------------------------------------------------------------------------{% comment%} Paragraph comment {% endcomment%}
Extends and include for HTML