* @param compress
* @return the css contet or null if not found.
*/
public String getCSS(ControllerContext context, boolean compress) {
try {
final ByteArrayOutput output = new ByteArrayOutput();
boolean success = renderCSS(context, new ResourceRenderer() {
public BinaryOutput getOutput() {
return output;
}
public void setExpiration(long seconds) {
}
}, compress);
if (success) {
return output.getString();
} else {
return null;
}
} catch (IOException e) {
// log.error("Error while rendering css " + path, e);