Skip to main content
This page describes the basics and syntax of modifiers. Modifiers (also called filters) are used to modify, format, or check values in the template directly upon output or further processing — for example, adjusting text, rounding numbers, or transforming lists.

Basics & syntax

Modifiers are not written as a standalone function call but applied to an existing value. A modifier always processes the value to its left. The result can be output directly or stored in a variable for later reuse. Modifiers are “appended” to a value with the pipe operator |:
{{= <value> | <modifier> }}
If a modifier requires additional parameters, these are specified in parentheses:
{{= <value> | <modifier>(<parameter1>, <parameter2>, ...) }}

Modifier overview

A complete list of all available modifiers is not maintained separately here, since almost all global functions from the reference page Functions can also be used as modifiers.

Examples

Example upper

Output value in uppercase
{{= "Sneaker Classic" | upper }}
=
SNEAKER CLASSIC

Example replace and lower

Prepare value for URL/slug (replace spaces + lowercase)
{{= "Sneaker Classic" | replace(" ", "-") | lower }}
=
sneaker-classic