drupflare/worker - v1.0.4
    Preparing search index...

    Function renderTemplate

    • Fills the __CFW_NAME__ tokens of a PHP or HTML asset from vars. A // __CFW_NAME__ line is replaced whole and keeps its indent; an inline token in place. Throws on a missing value or a leftover token.

      Parameters

      • text: string
      • vars: Readonly<Record<string, string>>

      Returns string