Skip to content

Adding comments to design templates (Liquid templates)

This article uses the current Opensense template syntax, Liquid (as of 2022). If you’re used to the older format, see HTML and field types (legacy templates).

  • Around unfinished code
  • To explain how a signature operator works, so it’s easy to find

Comments aren’t displayed when emails are sent.

{% comment %}
The operator below lets you display the address that matches the sender's location.
You can easily add new locations by creating a new {% when "" %} statement,
and saving the signature template.
{% endcomment %}
{% case location %}
{% when "New Jersey" %}
555 Highpoint Lane<br />
Englewood, NJ 07631
{% when "Atlanta" %}
1234 Pleasant Street<br />
Atlanta, GA 30301
{% else %}
1234 HQ Lane<br />
Louisville, KY 40210
{% endcase %}

For further help, contact Opensense Support at help@opensense.com.

Screenshot preview

Screenshot