Previous Chapter | Next Chapter | Up | Next Section | Contents

Excluding Source Text with the dtml-comment Tag


The dtml- comment tag provides a way to exclude source text from the rendered text. The dtml- comment tag is a simple non-empty tag that inserts no text. Further, the source enclosed by a dtml- comment tag is not rendered. Dtml- comment tags can be used to provide explanatory text or to disable parts of the source. Comment tags can be nested. Here is an example:

<dtml-call updateData>
The data have been updated.
<dtml-comment>

This comment is used to disable logging.

<dtml-comment>

The following call records that updates were made
</dtml-comment>

<dtml-call logUpdates>
</dtml-comment>

Previous Chapter | Next Chapter | Up | Next Section | Contents