splitPlaceholders()
function splitPlaceholders(text): TextPart[];Splits text on {{ expression }} placeholders. \{{ is a literal {{.
Throws an Error with a descriptive message for unterminated or empty placeholders.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
text |
string |
Returns
Section titled “Returns”TextPart[]