Skip to content

interpolate

interpolate(text, vars): string

Defined in: packages/template/src/interpolator.ts:8

Interpolates variables into a string using the #{key} syntax.

string

The string to interpolate

Record<string, any>

A record of key-value pairs to replace

string

The interpolated string