Skip to main content
Box Doc Gen lets you generate documents from an HTML template using text tags. This article describes the supported tag type and how to use it.

Supported tag types

Box Doc Gen supports the following tag type in an HTML template:
  • Text tags

Support by generation method

Support for the tag type depends on how you generate the document.

Text tags

A text tag is any data field of type string, number, or date. In the following example, fields such as companyName, subscriptionPlan, renewalDate, and expiryDate are used as text tags.
Create an HTML template that includes the fields you want to replace dynamically. During generation, Box Doc Gen replaces the fields in double curly braces with your data.

Formatting text tags

You can format a text tag value inline using the :: operator. The following table displays example input formats and their output.
Last modified on August 4, 2026