[Neos] [NEOS] About comments on html template
Bastian Waidelich
bastian at typo3.org
Fri Jun 12 17:54:14 CEST 2015
On 11.06.15, at 22:59, Aske Ertmann wrote:
Hi,
> Try using the <f:comment> view helper.
One addition:
using the <f:comment /> ViewHelper indeed prevents anything from being
rendered, but the contents are *still evaluated* by the Fluid parser by
design.
If you want to prevent parsing of parts of your template, use CDATA tags
and combine both to really avoid any side effects:
<f:comment><[CDATA[
This will be ignored by the parser and renderer
]]></f:comment>
Or better yet: Keep your templates simple so that you don't have to add
explanatory comments. And never commit commented-out code (and that's
true for HTML code, too) ;)
--
Bastian Waidelich
More information about the Neos
mailing list