Liquid Templates

Appropo uses Liquid, the same templating language used by Shopify, to let you customise the content of emails and notifications sent to your customers.

Variables

Templates have access to variables that let you personalise each message. Wrap variable names in double curly braces to output their value.

Hello {{ customer.first_name }},

Thank you for your order of {{ order.total | money }}.

Filters

Filters transform the output of a variable. Chain them with a pipe | character.

{{ order.total | money }}
{{ customer.first_name | upcase }}
{{ order.placed_at | date: "%d %B %Y" }}

Tags

Tags control the logic and flow of your template.

{% if order.type == "delivery" %}
  Your order will be delivered to {{ order.address }}.
{% else %}
  Your order will be ready for pickup.
{% endif %}
{% for item in order.items %}
  - {{ item.name }} x{{ item.quantity }}
{% endfor %}