- (% ...... %) --statement
- {{ ....... }} --expression
- {# ...... #} -- comment
- {%- ... %} -- trim left hand side by delimiter -
- {% ... -%} -- trim right hand side by delimiter -
{% set variable_name = value %} {% if criteria statement for variable_name %} do something {% else %} do other thing {% endif %}
{% macro funcName(arg1, arg2='default') %} do something with arg1 and arg2 {% endmacro %}
- call macro {{ funcName(arg1, arg2) }} will do something inside the macro https://jinja.palletsprojects.com/en/3.0.x/templates/#macros