replace Placeholders With Values
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
placeholder
Values (Required)
Type: Object
The mapping object from placeHolderName to the actual value
document
Node (Required)
Type: DocumentNode
The document node which to process
blueprint
(Required)
Type: Blueprint
The blueprint in which to replace the placeholders