Skip to main content

Templating and Functions

Replay uses Handlebars-style {{ var }} syntax for variable interpolation, plus 45 built-in functions for data transformation.

Variable Interpolation

Any string field in a step can reference state variables:
Variables are resolved at execution time from the current state bag.

Nested Access

Access nested fields with dot notation:

Environment Variables

Environment variables are loaded into the global scope at startup. Access them directly:

Built-in Functions

String Functions

Math Functions

Date Functions

JSON Functions

Type Conversion Functions

Combining Functions

Functions can be nested:

What’s Next?