{{ foo.bar }}
{{ foo["bar"] }}
{{ foo | title }}
{{ foo | join(",") }}
{{ foo | replace("foo", "bar") | capitalize }}
{% block header %}
This is the default content
{% endblock %}
{% block left %}{% endblock %}
{% block right %}
This is more content
{% endblock %}
{% extends "parent.html" %}
{% block left %}
This is the left side!
{% endblock %}
{% block right %}
This is the right side!
{% endblock %}
{% block right %}
{{ super() }}
Right side!
{% endblock %}
{% if variable %}
It is true
{% endif %}
{% if hungry %}
I am hungry
{% elif tired %}
I am tired
{% else %}
I am good!
{% endif %}
Posts
{% for item in items %}
{{ item.title }}
{% else %}
This would display if the 'item' collection were empty
{% endfor %}
{% for ingredient, amount in food %}
Use {{ amount }} of {{ ingredient }}
{% endfor %}
{% for fruit, color in fruits %}
Did you know that {{ fruit }} is {{ color }}?
{% endfor %}
{% for x, y, z in points %}
Point: {{ x }}, {{ y }}, {{ z }}
{% endfor %}
Posts
{% asyncEach item in items %}
{% include "item-template.html" %}
{% endeach %}
Posts
{% asyncAll item in items %}
{{ item.id | lookup }}
{% endall %}
{% macro field(name, value='', type='text') %}
{% endmacro %}
{{ username }}
{% set username = "joe" %}
{{ username }}
{% set standardModal %}
{% include 'standardModalData.html' %}
{% endset %}
{% set standardModal %}
{% include 'standardModalData.html' %}
{% endset %}
{% include "missing.html" ignore missing %}
{% import "forms.html" as forms %}
{{ forms.label('Username') }}
{{ forms.field('user') }}
{{ forms.label('Password') }}
{{ forms.field('pass', type='password') }}
{% from "forms.html" import field, label as description %}
{{ description('Username') }}
{{ field('user') }}
{{ description('Password') }}
{{ field('pass', type='password') }}
{{ foo(1, 2, bar=3, baz=4) }}
{# Loop through all the users #}
{% for user in users %}...{% endfor %}
{% set cls = cycler("odd", "even") %}
{% for row in rows %}