You could decorate the TemplateParser service and convert its output to drop the CommentToken objects inside the returned ComponentTemplate object (that is, return a new ComponentTemplate that filters its output somewhat).
On Thu, Mar 10, 2011 at 2:39 AM, stephanos2k <stephan.beh...@googlemail.com> wrote: > Would it make more sense (performance-wise) to remove the HTML comments in > the 'SaxTemplateParser'? > > I remembered that there was an option in Tapestry to compress whitespaces > from templates. I dug around the Tapestry source a bit and found the > 'SaxTemplateParser' which apparently parses each template once before > 'using' it for each request (correct me if I'm wrong). > > What do you think? > Can I override the parser somehow? > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/remove-HTML-comments-from-output-tp3415110p3423090.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 > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org