Skip to content

@burnmark-io/designer-core


@burnmark-io/designer-core / applyTemplate

Function: applyTemplate()

applyTemplate(template, variables): string

Defined in: packages/core/src/template.ts:12

Substitute tokens in template with values from variables. Case-insensitive lookup, whitespace around keys is trimmed. Unknown placeholders are left as-is (rendered literally).

Parameters

template

string

variables

Record<string, string>

Returns

string

Not affiliated with Dymo, Brother, Avery, or any hardware vendor.