Hi,
you can use <t:remove>..</t:remove> to mark parts of template that should
not be rendered
http://tapestry.apache.org/component-templates.html#ComponentTemplates-%3Ct%3Aremove%3E

If you really need to remove comments, you can contribute a
MarkupRendererFilter to MarkupRenderer and just remove all (or some) comment
nodes from DOM before rendering.

Best regards,
Cezary

On Wed, Mar 9, 2011 at 9:07 AM, stephanos2k
<stephan.beh...@googlemail.com>wrote:

> I think Tapestry should be able to remove the HTML comments from the
> rendered
> result
>  - IF the user explicitly enables this. I saw that this was discussed
> before, but apparently no actions were taken (right?).
>
> The only reasons I can think of NOT to do it are:
>
> a) slower rendering because of additional computing overhead
> -> the overhead is probably quite small, if it isn't, I bet the stripped
> version could easily be cached
> b) problems with browser specific 'comments' ([if lt IE 6])
> -> the  section could simply be ignored (or Javascript can be used for
> those
> conditional commands)
>
> In the end the benefits would be:
> -> smaller output
> -> comments are kept private - they are for internal purposes only anyway
>
> What do you think?
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/remove-HTML-comments-from-output-tp3415110p3415110.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to