Type: Function

How to get replacePlaceholdersWithValues?


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.


  1. placeholderValues


    Type: Object

    The mapping object from placeHolderName to the actual value

  2. documentNode


    The document node which to process

  3. blueprint


    Type: Blueprint

    The blueprint in which to replace the placeholders