JavaScript API: getTemplateSymbols
- addBookmark
- addBreak
- addComment
- addCrossReference
- addDateTime
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addImage
- addLink
- addList
- addMergeField
- addPageNumber
- addSimpleField
- addStructuredDocumentTag
- addSvg
- addTab
- addTable
- addTableOfContents
- addTableOfFigures
- addText
- addWordFragment
- addWordMl
- getTemplateSymbols
- getTemplateVariables
- openTemplate
- processTemplate
- removeVariableImage
- removeVariableText
- replaceVariableCheckbox
- replaceVariableExternalFile
- replaceVariableImage
- replaceVariableInputField
- replaceVariableList
- replaceVariableTable
- replaceVariableText
- replaceVariableWordFragment
- replaceVariableWordMl
- setTemplateSymbols
getTemplateSymbols
PREMIUM
TRIAL / ADVANCED
Gets template symbols.
Note
You are reading the JavaScript API documentation. For the PHP API methods please go to PHP API.
Description
getTemplateSymbols (): [string, string]
By default phpdocx template variables have to be wrapped by dollar symbols ($).
These symbols can be changed by custom ones using setTemplateSymbols.
The character or symbol used to wrap template variables may be:
- The same at the beginning and the end: $VAR$, |VAR|, #VAR#...
- Different at the beginning and the end: ${VAR}, #{VAR}, [[VAR]], «VAR»...
Code samples
Example #1
Release notes
- phpdocx 15.0:
- new method.