MarkupRendererFilter: renderMarkup(MarkupWriter writer, MarkupRenderer renderer) { renderer.renderMarkup(writer);//allow the rest of the filters to work. Document doc = writer.getDocument(); //now you can manipulate the dom via the doc variable. }
On Mar 10, 2011, at 3/104:14 AM , stephanos2k wrote: > That sounds interesting. > > #1: Is there any 'documentation' to get started with the > MarkupRendererFilter? > I can't see where exactly I can manipulate the DOM in > [renderMarkup(MarkupWriter writer, MarkupRenderer renderer)]. > > #2: And do you think it's the fastest method? > - since, if I understand correctly, this is called for each pageview. > Couldn't the template itself be filtered only once and the 're-used'? > > Cheers, > Stephanos > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/remove-HTML-comments-from-output-tp3415110p3423068.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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org