Transform directive
Page Contents
Synopsis
<transform transVar> ... </transform> or <transform transVar name1=value1 name2=value2 ... nameN=valueN> ... </transform>
Where:
- transVar: Expression evaluates to a transform
- name1, name2, ... nameN: Name of parameters. Literal value, not expression.
- value1, value2, ... valueN: Expressions evaluate to the values of parameters
Description
Note
This directive is still working, but deprecated. You may want to read about user-defined directive calls to see the replacement.
Captures the output generated inside its body (i.e. between its start-tag and end-tag), and let the given transform modify it before it is written to the final output.
Example:
| |||
the output will be:
| |||
Some transforms may take parameters. The name and meaning of parameters depends on the transform in question. For example here we give a parameter called ``var'':
| |||
It is the task of the programmers to put the necessary transforms into the data-model. For the name and usage of accessible transforms ask the programmers. Initially there is a shared variable for most transforms in the freemarker.template.utility package. For more information see: Programmer's Guide/The Configuration/Shared variables