Cool - thanks for the info! I just implemented it, works like a charm. In case anyone is interested in this - here is my code (Scala):
# AppModule def decorateTemplateParser(parser: TemplateParser) = new TemplateParser() { import scala.collection.JavaConversions._ def parseTemplate(templateResource: Resource) = { val res = parser.parseTemplate(templateResource) val tokens = res.getTokens.filter(t => t.getTokenType != TokenType.COMMENT) new ComponentTemplateImpl(res.getResource, tokens, res.getComponentIds, res.isExtension, null) } } The only thing I'm confused about is the last constructor parameter of the ComponentTemplate (Map<String, List<TemplateToken>> overrides) which I had to set to null because I can't get the data out of the result object. Is this problematic? -- View this message in context: http://tapestry.1045711.n5.nabble.com/remove-HTML-comments-from-output-tp3415110p3424135.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