.. include:: /Includes.rst.txt
.. _typo3fluid-fluid-comment:
=======
comment
=======
This ViewHelper prevents rendering of any content inside the tag.
Contents of the comment will still be **parsed** thus throwing an
Exception if it contains syntax errors. You can put child nodes in
CDATA tags to avoid this.
Using this ViewHelper won't have a notable effect on performance,
especially once the template is parsed. However it can lead to reduced
readability. You can use layouts and partials to split a large template
into smaller parts. Using self-descriptive names for the partials can
make comments redundant.
Examples
========
Commenting out fluid code
-------------------------
::
Before
This is completely hidden.
This does not get rendered
After
Output::
Before
After
Prevent parsing
---------------
::
]]>
Output:
Will be nothing.
Arguments
=========
This ViewHelper has no arguments.