This macro wraps a block of output with a header and/or a footer, if
the output is not empty.
.block [(head)]
block-input
.endblock[(tail)]
The following parameters are available:
Parameter
|
Description
|
head
|
[optional] Generated only if
block-input is not empty.
Type: Simple template
|
block-input
|
Specifies the text to output between the head and
tail.
Type: Complex template
|
tail
|
[optional] Generated only if block-input is not
empty.
Type: Simple template
|
Example |
Result |
.block (<b>)
%Comment%
.endblock (</b>)
|
<b>My comment is in bold!<b>
Note: The <b> tags would not be generated if no
comment were entered for a particular object.
|