SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

string.format

BETA

Short name: format

Version: 1.0.0

Substitute {{key}} placeholders in a template with values from a provided object.

Back to primitive library

Inputs

KeyTypeRequiredDescription
templatestringtrueTemplate text containing {{key}} placeholders.
valuesobjecttruePlaceholder lookup object where each key maps to a string, number, boolean, or null.

Outputs

KeyTypeRequiredDescription
resultstringfalseFormatted text with all placeholders substituted.