Objective
This how-to article shows the required syntax to include expressions in DocFusion Template's that are set to HTML Mode. Enabling HTML Mode means that the document's output format is HTML.
Expressions are an advanced feature that can be used in any DocFusion template. They let you evaluate math, logical operators and a variety of other formulas as a means to dynamically generating content in your document. Using expressions, you can also format the generated content.
Availability
HTML Mode and its related features are available on:
| DocFusion Cloud | DocFusion 365 | DocFusion On Premises | |
|---|---|---|---|
| Template Designer Version | 2022.3.0.91 or later | 2022.3.0.91 or later | 2022.3.0.91 or later |
| Workbench Version | 2022.3.0.91 or later | 2022.3.0.91 or later | 2022.3.0.91 or later |
| Workflow Designer Version | 2022.3.0.91 or later | 2022.3.0.91 or later | 2022.3.0.91 or later |
Steps
- Open the HTML Settings window by clicking Edit HTML Settings in the DocFusion ribbon bar,
- Locate the HTML tag in which you would like to add DocFusion Expressions to evaluate content. You can add an expression anywhere in the HTML structure.
- To add an expression, simply type it between the double-curly braces syntax as follows:
{{ expression }}