I was wondering if there is a way to add comments (not html comments) into the template (chunk too) markup that would be removed by MODx during rendering so that they wont show up in the source code. I would find it useful to leave some instructions in the template code to help the client understand the work better, by adding html comments these remain visible to end user so they are not private.
Is there a modx comment tag? I have noticed that if you put comments in {{}} that they will not pass through as long as they dont match any current chunks, but is this a good idea to use for comments?
Nothing out of the box atm. But you can develop a plugin to look for a text block and then remove it on web page render.
i.e. [[--commentblock--] [--commentblock--]]