return sb.toString();
}
private String renderJs(CajoledModule cajoled, boolean debug) {
StringBuilder rendered = new StringBuilder();
TokenConsumer tc = debug
? new JsPrettyPrinter(new Concatenator(rendered))
: new JsMinimalPrinter(new Concatenator(rendered));
cajoled.render(new RenderContext(tc)
.withAsciiOnly(true)
.withEmbeddable(true));
tc.noMoreTokens();
return rendered.toString();
}