41 lines
1.4 KiB
HTML
41 lines
1.4 KiB
HTML
{% if config.DEBUG %}<!-- template begins: {{ self._TemplateReference__context.name }} -->{% endif %}
|
|
<article class="{{ content.css_classes }} mode-{{ mode }}">
|
|
|
|
{% if self.header()|trim %}
|
|
<header>
|
|
{% block header %}
|
|
{% if self.meta_header() %}
|
|
<div class="meta">
|
|
{% block meta_header %}{% endblock %}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
</header>
|
|
{% endif %}
|
|
|
|
<div class="content">
|
|
{% block content %}
|
|
<p>This is the base template for all renderables. You probably want to create one of these:</p>
|
|
<ul>
|
|
{% for template_candidate in content.template_candidates(mode=mode, format=format) %}
|
|
<li><code>{{ template_candidate }}</code></li>
|
|
{% endfor %}
|
|
</ul>
|
|
<p>You might also want this template to extend one of the more generic ones in this list.</p>
|
|
{% endblock %}
|
|
</div>
|
|
|
|
{% if self.footer()|trim %}
|
|
<footer>
|
|
{% block footer %}
|
|
{% if self.meta_footer()|trim %}
|
|
<div class="meta">
|
|
{% block meta_footer %}{% endblock %}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
</footer>
|
|
{% endif %}
|
|
</article>
|
|
{% if config.DEBUG %}<!-- template ends: {{ self._TemplateReference__context.name }} -->{% endif %}
|