{# The Primary Template #} {# ==================== #} {# #} {# The structure is flattened to some degree by ignoring the HTML,HEAD, FOOT and BODY elements. The nesting #} {# Starts at META,RSS,CSS,PAGE and SECTION for the HEAD and HEADER,FOOTER,NAV,MAIN, and FOOTER for the BODY. #} {# Indentation is based upon a single indent per HTML tag. I suppose indents are acceptable but are avoided. #} {# #} {# There is an inherint hierarchy in the blocks, the order is SITE>PAGE>VIEW. If you need more granularity I #} {# would use PART over say SECTION or SUBSECTION. as it's 4 letters long, as an added level resulting in the #} {# following hierarchy SITE>PAGE>PART>VIEW #} {# #} {# Specify the following default context in your views.py #} {# context = {'site' : {'title' : 'SITE'},'page' : {'title' : 'PAGE'}} #} {% block dtd %}{% endblock dtd %} {% block html %} {% block html_open %}{% endblock html_open %} {% block head %}
{% block head_prefix %} {% endblock %} {% block browser %} {% block IE %}{% endblock IE %} {% endblock browser %} {% block site %} {% block site_prefix %}{% endblock site_prefix %} {% block site_title %}{% endblock site_title%} {% block site_suffix %}{% endblock site_suffix %} {% endblock site %} {% block page %}{% endblock page %} {% block view %}{% endblock view %} {% block meta %} {% block meta_prefix %}{% endblock meta_prefix %} {% block meta_author%}{% endblock meta_author %} {% block meta_charset %}{% endblock meta_charset %} {% block meta_language %}{% endblock meta_language %} {% block meta_description %}{% endblock meta_description %} {% block meta_keywords %}{% endblock meta_keywords %} {% block meta_othertags %}{% endblock meta_othertags %} {% block meta_refresh %}{% endblock meta_refresh %} {% block meta_compatibility %}{% endblock meta_compatibility %} {% block meta_viewport %}{% endblock meta_viewport %} {% block meta_robots %}{% endblock meta_robots %} {% block meta_suffix %}{% endblock meta_suffix %} {% endblock meta %} {% block rss %} {% endblock rss %} {% block css %} {% block css_prefix %}{% endblock css_prefix %} {% block css_libs %}{% endblock css_libs %} {% block css_layout %}{% endblock css_layout%} {% block css_fonts %}{% endblock css_fonts%} {% block css_style %}{% endblock css_style%} {% block css_site %}{% endblock css_site %} {% block css_page %}{% endblock css_page %} {% block css_view %}{% endblock css_view %} {% block css_suffix %}{% endblock css_suffix %} {% endblock css %} {% block head_suffix %} {% endblock %} {% endblock head %} {% block body %} {% block body_content %} {% block header %}