replacePlaceholdersWithValues

Type: Function

How to get replacePlaceholdersWithValues?

JavaScript

import replacePlaceholdersWithValues from 'fontoxml-document-from-template/src/replacePlaceholdersWithValues.js'

Replaces placeholders by their actual value. Placeholders are identified by the text {{placeHolderName}} in the XML document's content. The value of each placeholder is retrieved from the placeholderValues object using the value between the brackets as the key.

Arguments

  1. placeholderValues

    (Required)

    Type: Object

    The mapping object from placeHolderName to the actual value

  2. documentNode

    (Required)

    The document node which to process

  3. blueprint

    (Required)

    Type: Blueprint

    The blueprint in which to replace the placeholders