Chapter 9 Generation Reference Guide (GTL)


block macro

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> ')']

Parameters

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

Output

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) 2005. Sybase Inc. All rights reserved.