{% extends "page.html" %} {% block body %} {{ super() }} {# super duper! #}
The title of this page is a string field. ^^
{# bool1 #}
booleans:
{% if this.boolean1 %}
Boolean1 caused True text!
{% else %}
Boolean1 caused False text!
{% endif %}
Boolean1 = {{ this.boolean1 }}
{# bool2 #}
{% if this.boolean2 %}
Boolean2 caused True text!
{% else %}
Boolean2 caused False text!
{% endif %}
Boolean2 = {{ this.boolean2 }}
Of the checkboxes 1-4, boxes {% for box in this.checkboxes %} {{ "and " if loop.last }} {{ box }}{{ ", " if not loop.last }} {% endfor %} are checked.
{# dates #}
A date: {{ this.date }}
A datetime: {{ this.datetime }}
formatted one way, {{ this.datetime.strftime('%Y-%m-%d %H:%M') }}
and another {{ this.datetime.strftime('%m/%d/%Y %H:%M') }}.
A float: {{ this.float }} and {{ this.floataddon }}
A int: {{ this.int }} and {{ this.intaddon }}
These flow blocks are called manually from the main template for this page:
{% for blk in this.flow.blocks %}
{{ blk.text }}
{% endfor %}
and all 'html' blocks with the additional templates in templates/blocks/:
{{ this.flow }}
Raw HTML:
{{ this.html }}
markdown: {{ this.markdown }}
strings:
{{ this.strings }}
{% for string in this.strings %}
{{ "and " if loop.last }} {{ string }}{{ ", " if not loop.last }}
{% endfor %}
Unformatted text: {{ this.text }}
sort_key: {{ this.sort_key }}
{% endblock body %}