Tags
Tags start with { and end with } with one or more characters between to define the type of tag and any contained logic.
Whitespace control short tags
{-} and {_} are short tags dedicated to whitespace control.
But all tags get the ability to control whitespace around them.
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_none() %}<a href="/login/">Log In</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 discarded. #}
Hello world.