What's the Difference Between HML and SML Merge Languages?

Lightning email templates now use the Handlebars Merge Language.

Required Editions

Available in: Lightning Experience
Available in: All Editions

List email not available in: Personal, Contact Manager, and Group Editions

In Summer ‘18, we introduced the Handlebars Merge Language (HML) for email templates in Lightning Experience. If your email template has merge fields with three curly braces ({{{), you’re using an HML email template. If the merge fields have one curly brace ({), or an exclamation mark (!), you’re using a SML (Salesforce Merge Language) email template. Lightning templates created since Summer ‘18 are HML email templates.

An email template can contain one type of merge field language only.

New abilities include:

  • Recipient merge fields that work with contact lead, and person account records, in one email template
  • ID merge fields that create links to Salesforce records
  • More organization-level fields, such as FY Start Month