Skip to content

@burnmark-io/designer-core


@burnmark-io/designer-core / applyVariables

Function: applyVariables()

applyVariables(doc, variables): LabelDocument

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

Produce a new document with placeholders substituted. Deep-clones; does not mutate the input. Only text content and barcode data are substituted.

Parameters

doc

LabelDocument

variables

Record<string, string>

Returns

LabelDocument

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