use of org.xwiki.rendering.renderer.printer.WriterWikiPrinter in project xwiki-platform by xwiki.
the class InternalTemplateManager method render.
private void render(XDOM xdom, Writer writer) {
WikiPrinter printer = new WriterWikiPrinter(writer);
BlockRenderer blockRenderer;
try {
blockRenderer = this.componentManagerProvider.get().getInstance(BlockRenderer.class, getTargetSyntax().toIdString());
} catch (ComponentLookupException e) {
blockRenderer = this.plainRenderer;
}
blockRenderer.render(xdom, printer);
}
Aggregations