• Return undefined if the template doesn't include the variable that is set as a property in data. But return template string without changes if it doesn't have a variable.

    Parameters

    • template: string

      Mustache template string

    • data: Readonly<Record<string, string>>

      Captured string for replacement

    Returns undefined | string

Generated using TypeDoc