Template Fragments

Within a document template it is possible to include one or more sub-templates, or Template Fragments. Using Template Fragments, you can include in your document reports information from SQL Queries and Model Scripts, as well as Project Browser data, providing a greater level of customization of the document output. You can also reuse the same Template Fragment in several different templates, so you can develop a library of common Template Fragments that can be used to build larger, more complex document reports. An additional facility is to use one Template Fragment to call other Template Fragments depending on which type of element is being reported on.

A Template Fragment is created through the same process as a normal, full-document template. Each Template Fragment can have its own Document Options, such as the filtering and sorting applied.

You can also use, copy and edit a number of system-provided Template Fragments, which you can access from the Document Generation > System Templates > Fragments folder in the Resources window.

Template Fragments - Process Overview



See also


Create the Template Fragments to be included in your template.

Creating a Template Fragment


Create a normal, full-document template that is to include your Template Fragments.

Design Custom Document Templates


Within this full-document template add references to your Template Fragments in the appropriate locations.

Adding Fragments to a Template


  • You cannot generate documentation directly from a Fragment; to use a Fragment it must be included in a template

Learn more

Learning Center topics

  • Alt+F1 | Enterprise Architect | Reporting | RTF Template Fragments | Overview