[#comment]text[/#comment]
The comment tag can be used to add a comment in the doc template. The contents of this tag is not processed and is not part of the output.
This code processes a UML model contents and outputs the name of its owned package elements :
[#parameters]in model : uml21[/#parameters]
Model contents:
[#file]result.xml[/#file]
[#comment]'model.getInstances(“Package”)' evaluates to a collection containing each package of the model[/#comment]
[#foreach p : uml21.Package in model.getInstances(“Package”)]
Package name: ${p.name}
[/#foreach]