Menu

COMPOSE

A library of the compose tag that can be used to compose other templates within a composing process.

compose

Composes a separate OOXML or HTML template and stores the composed result into the variable context. The composed template has access to all variables, except for external parameters, of this template. Also, any Forms within the composed template's logic are skipped and therefore variables created within them are not available in the logic. It is therefore generally a good idea to use this tag to only compose templates designed for this purpose.  

The template to compose may be Controller or Flow-based. If the template is Flow-based, its Flow with the ID "compose" will be run.

Compose produces a local variable context that is the active context for the duration of this composing process. While most variables that the composed template's logic creates stay within this local context, be aware that any set tags may overwrite variables in the template initiating the composing.

Attributes

value

Required
Value type
EL-evaluated
Yes File Yes
Defines the template to be composed. The resolved File may be an Office template or a HTML file. 
var

Required
Value type
EL-evaluated
Yes String No
Defines the name of the variable that will hold the composed template File.
title

Required
Value type
EL-evaluated
No String Yes
Defines a title for the composed template File.

If not defined, the name of the File that value resolves into will be formed into the title.

Restrictions

The compose tag may be evaluated up to 10 times within a single evaluation process.

Comments

0 comments