Chapter 5 Customizing Generation with GTL
The .block macro is used to add a header and/or a footer to its content when it is not empty.
.block [(head)] block-input .endblock[(tail)]
The following parameters are available:
Parameter | Description |
---|---|
head | [optional] Generated before output, if there is one.
Type: Simple template |
block-input | Parameter used to input text
Type: Complex template |
tail | [optional] Appended to the output, if there is one
Type: Text |
The output is a concatenation of head, the evaluation of the block-input and tail.
Example:
.block (<b>) The current text is in bold .endblock (</b>)
Copyright (C) 2008. Sybase Inc. All rights reserved. |
![]() |