.unique Macro

This macro outputs a block in which each line of the text generated is unique, and is often used for calculating imports, includes, typedefs, or forward declarations in languages such as Java, C++ or C#.

.unique
	block-input
.endunique[(tail)]

The following parameters are available:

Parameter

Description

block-input

Specifies the text block to be processed.

Type: Complex template

tail

[optional] Specifies text to be generated after the output, unless the collection is empty.

Type: Text

Example
.unique
	import java.util.*;
	import java.lang.String;
	%imports%
.endunique