compiler.setGoals(
compiler.getGoals().without(PipelineMaker.HTML_SAFE_STATIC));
}
passed = compiler.run();
CajoledModule outputJs = passed ? compiler.getJavascript() : null;
StringBuilder jsOut = new StringBuilder();
TokenConsumer printer;
if ("1".equals(req.getParam("debug"))) {
printer = new JsPrettyPrinter(new Concatenator(jsOut));
} else {
printer = new JsMinimalPrinter(new Concatenator(jsOut));
}
RenderContext renderContext = new RenderContext(printer).withEmbeddable(true);
if (outputJs != null) {
outputJs.render(renderContext);
}
renderContext.getOut().noMoreTokens();
resp.setContent(jsOut.toString());
} finally {