Tags
Tags start with {
and end with }
with one or more characters between to define the type of tag and any contained logic.
Writs
Writs are expressions wrapped with {{
and }}
that will be evaluated and output into the template:
Hello {{ name }}!
Hello Luna!
Statements
Statements are wrapped with {%
and %}
and include variable assignments and control structures:
{% if user.is_some() %}<a href="/account/">Account</a>{% endif %}
<a href="/login/">Log In</a>
Comments
Comments are text wrapped with {#
and #}
that won't appear in the final template:
Hello world.{# Comments are ignored. #}
Hello world.