Skip to main content
Tag a template literal so the assets interpolated into it are sent with the text. Each asset is replaced by its reference; other values are converted to strings, as in an untagged template literal. To write a list of assets with a separator, use withAssets.join.

Type Declaration

Parameters

strings

TemplateStringsArray

values

…readonly unknown[]

Returns

TextWithAssets

join()

Join values with separator, as Array.prototype.join does, and send the assets among them with the text. The result can be passed as content or interpolated into withAssets.

Parameters

values
readonly unknown[]
separator?
string Written between values. Default: ",".

Returns

TextWithAssets

Example

Example