I am trying to integrate LessCSS into T5 as a request filter. I have an admittedly naive implementation on GitHub ( https://github.com/redijedi/tapestry-less). It works, kind of. There is a test app that can be run via maven (mvn clean jetty:run). Hitting http://localhost:8080/ will cause a stack trace that describes what appears to be a failed attempt to less-compile non-ascii text. However, strangely, it seems to work for context assets (.less files), but doesn't work if the CSS is imported in a component. Both examples are present in the test project. The latter appears to have been gzipped prior to the point that my filter gets it and therefore cannot be less-compiled. I have tried adding this to the configuration with "before:GZIP" with no effect. As I am trying to create a drop-in library, I don't think it would be nice to require gzip to be disabled.
Does anyone have any advice on altering the response in a filter without having gzip step all over it? Thanks!