Skip to main content

Overview

The template transformation applies a template string with variable substitution using sprintf format.

Syntax

template(<variable>, template="")

Parameters

ParameterTypeRequiredDescription
variableanyYesThe variable to use in the template
templatestringYesThe template string using sprintf format (e.g., %s for strings, %d for integers)

Examples

template(<variable>, template="Hello %s!")
template(<variable>, template="Value: %d items")