This macro defines a block in which each line of the text generated is guaranteed to be unique. It can be useful for calculating imports, includes, typedefs, or forward declarations in languages such as Java, C++ or C#.
.unique block-input .endunique[(tail)]
The output is the block input with every redundant line removed.
The following parameters are available:
Parameter |
Description |
---|---|
block-input |
Parameter used to input text Type: Complex template |
tail |
[optional] Appended to the output, if there is one Type: Text |
Example:
.unique import java.util.*; import java.lang.String; %imports% .endunique