Theme engine
The organization site themes are rendered with Jinja2. Theme files are uploaded as theme assets.
Basic Jinja syntax:
{{ variable }} {# print a value #}
{{ object.attribute }} {# attribute access #}
{{ object['key'] }} {# key access #}
{% if condition %}...{% endif %}
{% for item in list %}...{% endfor %}
{{ value | filter }}
Pages in this section:
- Context variables — what is available on every page
- Objects and attributes — the fields of each object (
campaign,page, …) - Custom fields —
campaign.customfields - Tags and filters —
{% section %},format_money,format_date, … - Sections and settings —
theme,sections,section