Channel & craft

Liquid (Braze templating)

Also known as: liquid templating · Shopify liquid · braze liquid

A templating language used in Braze, Shopify, and Jekyll for inserting dynamic variables, conditionals, loops, and filters into email, push, and in-app content — enables personalisation without code-level integration.

Liquid is the templating language originally created by Shopify, now widely used in Braze, Jekyll, and other marketing platforms for dynamic content injection. Core syntax: {{ variable }} for output, {% tag %} for logic (if/else, for loops, assignments), and pipe filters ({{ name | upcase }}) for transformation. In Braze specifically, Liquid accesses custom attributes ({{${first_name}}}), event properties, and connected content (external API calls). Operators use Liquid for personalisation tokens, conditional content blocks (show block A for segment X, block B for segment Y), date formatting (countdown timers, delivery-window display), and currency/locale handling for global programs. Common mistakes: unescaped user input opening XSS in connected-content fetches, missing default filters that render empty when the attribute is blank, and over-nested conditionals that become unreadable. Best practice: keep Liquid shallow, test with edge-case personalisation data, always add | default filters.

Try the tool

Read next

See also

← Back to the glossary