This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
devel:blueprints:django_template [2010/01/13 10:34] eide django and context processors |
devel:blueprints:django_template [2010/01/13 10:46] eide django template blocks |
||
---|---|---|---|
Line 24: | Line 24: | ||
Returns the version number from nav.web.buildconf | Returns the version number from nav.web.buildconf | ||
+ | |||
+ | ==== Template blocks and filters ==== | ||
+ | |||
+ | The base templates contains a number of template blocks and tags that both can be overwritten by subsystems. | ||
+ | |||
+ | | base_header | The header. Doctype, HTML head section and the header parts of the html. | | ||
+ | | base_header_head | The head block. | | ||
+ | | base_header_title | The title of the page. | | ||
+ | | base_header_additional_head | Any additional content that should go inside the head tag. Ie. extra CSS or JavaScript | | ||
+ | | base_body_start | The opening body tag. | | ||
+ | | base_header_logo | The NAV logo. | | ||
+ | | base_header_navbar | The navigation bar with breadcrumbs, customizable navbar and quick-links. | | ||
+ | | base_header_navpath | Breadcrumb path. | | ||
+ | | base_content | The content of the page. This one should be overwritten by subsystems to display the content. | | ||
+ | | base_debug | Output from the debug preprocessor. | | ||
+ | | base_footer | The footer | | ||
===== Backwards compability ===== | ===== Backwards compability ===== |