Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/headless-content-unblocker/src/dom/applyDynamicsToHtml"

Index

Variables

Const DYNAMICS_VARIABLE_REGEXP

DYNAMICS_VARIABLE_REGEXP: RegExp = /{{([A-Za-z0-9_]+)}}/gm

Functions

applyDynamicsToHtml

  • applyDynamicsToHtml(src: string, dynamics: Record<string, string>): string
  • Takes any string and replaces {{myVariable}} with the value of the passed dynamics map.

    Parameters

    • src: string
    • dynamics: Record<string, string>

    Returns string

Generated using TypeDoc