Add Comments into Design Templates (Liquid Templates Only)
  • 16 Jan 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Add Comments into Design Templates (Liquid Templates Only)

  • Dark
    Light
  • PDF

Article Summary

This is our current template syntax as of 2022. If you are not familiar with/used to this format, please check out our Legacy Templating Articles

Use Cases

  • Apply around unfinished code
  • Explanation of how a certain signature operator works so that it can be easily found
Comments will not be displayed when emails are sent

Example

{% 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 %}

{% when "New Jersey"%}

555 Highpoint Lane

Englewood, NJ 07631

{% when "Atlanta" %}

1234 Pleasant Street

Atlanta, GA 30301

{% else %}

1234 HQ Lane

Louisville, KY 40210

{% endcase %}

HTML Code

Rendered Email Signature


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.