Chapter 9 Generation Reference Guide (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> ')']
Parameter | Type | Description |
---|---|---|
<head> (optional) | Simple template | Generated before output, if there is one |
<tail> (optional) | Text | Appended to the output, if there is one |
<block-input> | Complex template | Parameter used to input text |
The output is the concatenation of <head>, the evaluation of the <block-input> and the <tail>.
Example:
.block (<b>) The current text is in bold .endblock (</b>)
Copyright (C) 2007. Sybase Inc. All rights reserved. |
![]() |