Documentation Index

Fetch the complete documentation index at: https://help.docfusioncloud.com/llms.txt

Use this file to discover all available pages before exploring further.

How to add expressions to HTML mode documents

Prev Next

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 CloudDocFusion 365DocFusion On Premises
Template Designer Version2022.3.0.91 or later2022.3.0.91 or later2022.3.0.91 or later
Workbench Version2022.3.0.91 or later2022.3.0.91 or later2022.3.0.91 or later
Workflow Designer Version2022.3.0.91 or later2022.3.0.91 or later2022.3.0.91 or later

Steps

  1. Open the HTML Settings window by clicking Edit HTML Settings in the DocFusion ribbon bar, 
  2. 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.
  3. To add an expression, simply type it between the double-curly braces syntax as follows:
{{ expression }}