Include

The <include> element allows you to include external ADX templates into your document. This is useful for reusing common template definitions (like headers, footers, or style definitions) across multiple documents.

The included template is rendered and its defined <template> and <style> elements become available in the current document.

Example

<adx>
  <include template="shared_headers" />
  <body template="letterhead">
    <text>Document content here...</text>
  </body>
</adx>

In this example, the shared_headers template (defined elsewhere in the Atfinity system) is included, making its page templates and styles available for use in the body.

Attributes

template (required)

The identifier of the template to include. This references a template defined in the Atfinity system.

Usage Notes

  • <include> must be placed directly under the root <adx> element

  • Multiple <include> elements can be used to include several templates

  • Included templates contribute their <pageTemplates> and <styles> to the current document

  • The order of inclusion matters if templates define elements with the same identifiers

Example with Multiple Includes

chevron-righthashtag

Last updated

Was this helpful?