💧
Liquid Markup
- 16 Articles
- Updated Sep 22, 2026
- Published on Mar 31, 2025
Liquid markup is a templating language used to create dynamic content. Originally created by Shopify, Liquid is an open-source project used by many world-class web applications, including Slate. It can be used anywhere in Slate that you can us...
- Updated Nov 14, 2025
- Published on Sep 15, 2025
In Liquid markup , the fundamental unit we work with is the object . Objects Say you’re in a Slate location that provides access to merge fields, like the Edit Message interface in a Deliver mailing. When you select a merge field, it is ins...
- Updated Apr 16, 2026
- Published on Mar 31, 2025
In Liquid markup , the if , elsif , and else tags are fundamental to Liquid markup and are essential components for conditional logic. if The if tag creates simple conditional logic, and is composed of two basic pieces: the condition an...
- Updated Apr 16, 2026
- Published on Mar 31, 2025
In Liquid markup , the unless tag is the functional inverse of the if tag: it displays content unless a condition evaluates as True. Here’s a generic example of the unless tag in action: {% unless export == condition %}
Content...
- Updated Apr 16, 2026
- Published on Apr 4, 2025
In Liquid markup , the case tag lets you create an array of outputs that depend on the value of a given export. In the case of a person reading your email: when they are an inquiry, they’ll receive a welcome message; when they are an app...
- Updated Apr 16, 2026
- Published on Nov 15, 2023
In Liquid markup , the for tag lets you loop through an array of objects and output information about each object. This is sometimes referred to as Liquid looping or for looping . For example, you can take a list of upcoming events and, for e...
- Updated Apr 16, 2026
- Published on Apr 4, 2025
In Liquid markup , the assign tag creates or updates an array name associated with an export. This gives you the freedom to use the original naming convention or the new array name, without having to create more query exports. Think of assign ...
- Updated Apr 16, 2026
- Published on Mar 31, 2025
In Liquid markup , the capture tag saves content as a new variable that you can use. While superficially similar to the assign tag, capture allows you to, aptly, capture multi-line content, HTML and other liquid markup. Think of the capt...
- Updated Apr 16, 2026
- Published on Mar 31, 2025
In Liquid markup , filters let you transform data before it’s displayed. This can be useful for modifying the returned value of merge fields or exports, without making adjustments to the underlying query. Liquid provides a number of standard fi...
- Updated Jul 21, 2026
- Published on Jun 19, 2026
Liquid markup can perform simple calculations in messages, letters, and portals. When the source value comes from a query export, confirm that Liquid treats the value as a number before applying a math filter. ⭐ Get Inspired This article was ...
- Updated Jul 21, 2026
- Published on Jun 19, 2026
Use the Liquid slice filter when you need to display only part of an export value in a mailing, portal, dashboard, letter, or other Liquid-enabled context. For example, you can show the last four digits of an ID number or return a shorter versio...
- Updated Jul 21, 2026
- Published on Jun 19, 2026
Liquid markup filters let you change how a value displays without changing the data stored on the record. Use the capitalize , downcase , and upcase filters when an export or string needs consistent capitalization in a mailing, portal, dashboa...
- Updated Jul 21, 2026
- Published on Jun 19, 2026
Use the truncate Liquid filter when a merge field or export may return more characters than you want to display. The filter shortens the value to a specified character count and can optionally append an ending string. ⭐ Get Inspired This ar...
- Updated Apr 16, 2026
- Published on Nov 15, 2023
You can use Liquid markup in portals to conditionally display text within a static content block based on exports added to the method query. Exports are used as merge fields to either display text conditionally or display the export value in t...
- Updated Nov 11, 2026
- Published on Nov 15, 2023
A note on Slate syntax for merge fields The examples in this article enclose merge fields in double curly braces inside conditions. For example, {% if {{major}} == 'Philosophy' %} starts a condition that uses the major merge field. If your stu...
- Updated Apr 16, 2026
- Published on Mar 31, 2025
If you’re having difficulty with Liquid markup throwing errors or not returning the desired results, below are some helpful troubleshooting steps. ✨ Prompting Slate AI Ask Slate AI for help debugging your Liquid markup: 💬 I’m getting a...