| 1 | {% extends "page.html" %} |
| 2 | {% block body %} |
| 3 | {{ super() }} {# super duper! #} |
| 4 | |
| 5 | <p>The title of this page is a <b>string</b> field. ^^</p> |
| 6 | |
| 7 | {# bool1 #} |
| 8 | <p> |
| 9 | <b>booleans:</b> |
| 10 | <br> |
| 11 | {% if this.boolean1 %} |
| 12 | Boolean1 caused True text! |
| 13 | {% else %} |
| 14 | Boolean1 caused False text! |
| 15 | {% endif %} |
| 16 | Boolean1 = {{ this.boolean1 }} |
| 17 | |
| 18 | {# bool2 #} |
| 19 | <br> |
| 20 | {% if this.boolean2 %} |
| 21 | Boolean2 caused True text! |
| 22 | {% else %} |
| 23 | Boolean2 caused False text! |
| 24 | {% endif %} |
| 25 | Boolean2 = {{ this.boolean2 }} |
| 26 | </p> |
| 27 | |
| 28 | {# checkboxes #} |
| 29 | <p> |
| 30 | Of the <b>checkboxes</b> 1-4, boxes |
| 31 | {% for box in this.checkboxes %} |
| 32 | {{ "and " if loop.last }} {{ box }}{{ ", " if not loop.last }} |
| 33 | {% endfor %} |
| 34 | are checked. |
| 35 | </p> |
| 36 | |
| 37 | {# dates #} |
| 38 | <p> |
| 39 | A <b>date</b>: {{ this.date }} |
| 40 | <br> |
| 41 | A <b>datetime</b> formatted three ways: |
| 42 | <ul> |
| 43 | <li>{{ this.datetime }}</li> |
| 44 | <li>{{ this.datetime.strftime('%Y-%m-%d %H:%M') }}</li> |
| 45 | <li>{{ this.datetime.strftime('%m/%d/%Y %H:%M') }}</li> |
| 46 | </ul> |
| 47 | </p> |
| 48 | |
| 49 | {# numbers #} |
| 50 | <p> |
| 51 | A <b>float</b>: {{ this.float }} and {{ this.floataddon }} |
| 52 | <br> |
| 53 | A <b>int</b>: {{ this.int }} and {{ this.intaddon }} |
| 54 | </p> |
| 55 | |
| 56 | {# flow blocks #} |
| 57 | <p> |
| 58 | These <b>flow blocks</b> are called manually from the main template for this page: |
| 59 | <br> |
| 60 | {% for blk in this.flow.blocks %} |
| 61 | {{ blk.text }} |
| 62 | {% endfor %} |
| 63 | and all 'html' blocks with the additional templates in templates/blocks/: |
| 64 | <br> |
| 65 | {{ this.flow }} |
| 66 | </p> |
| 67 | |
| 68 | <p> |
| 69 | Raw <b>HTML</b>: |
| 70 | <br> |
| 71 | {{ this.html }} |
| 72 | </p> |
| 73 | |
| 74 | <p> |
| 75 | <b>markdown</b>: |
| 76 | {{ this.markdown }} |
| 77 | </p> |
| 78 | |
| 79 | <p> |
| 80 | <b>strings</b>: |
| 81 | {{ this.strings }} |
| 82 | <br> |
| 83 | {% for string in this.strings %} |
| 84 | {{ "and " if loop.last }} {{ string }}{{ ", " if not loop.last }} |
| 85 | {% endfor %} |
| 86 | </p> |
| 87 | |
| 88 | <p> |
| 89 | Unformatted <b>text</b>: |
| 90 | {{ this.text }} |
| 91 | </p> |
| 92 | |
| 93 | <p> |
| 94 | <b>sort_key</b>: {{ this.sort_key }} |
| 95 | </p> |
| 96 | {% endblock body %} |