private String render(CajoledModule module,
Expression callbackExpression) {
StringBuilder out = new StringBuilder();
TokenConsumer tc = new JsPrettyPrinter(new Concatenator(out, exHandler));
module.render(callbackExpression, new RenderContext(tc));
tc.noMoreTokens();
return out.toString();
}
public final void testCajoledModuleRenderingWithCallback() throws Exception {
// Ensure that the rendered form of a cajoled module with a callback