Template containing placeholders to replace.
Pattern describing the placeholder delimiters. Defaults to
/{{([\s\S]+?)}}/. May be a string or RegExp and must
contain exactly one capture group for the placeholder key.
Function that receives replacement data and yields the interpolated string.
Creates a renderer that substitutes placeholders in a template with values provided at call time.
The returned function accepts either an object keyed by placeholder names or an array of values, in which case placeholders are numeric indices. Only raw substitution is performed—no escaping, looping, or conditional logic.