Fluid Syntax: Comments

If you want to completely skip parts of your template, you can make use of the <f:comment> ViewHelper.

Changed in version Fluid 4.0

The content of the <f:comment> ViewHelper is removed before parsing. It is no longer necessary to combine it with CDATA tags to disable parsing.

<f:comment>
    This will be ignored by the Fluid parser and will not appear in
    the source code of the rendered template
</f:comment>
Copied!

Since the content of the <f:comment> ViewHelper is completely removed before parsing, you can also use it to temporarily comment out invalid Fluid syntax while debugging:

<f:comment>
    <x:someBrokenFluid>
</f:comment>
Copied!