private <T> WriteContinuation startRender(AdvisingAppendable out) throws IOException { RenderContext context = contextBuilder .withMessageBundle(msgs) .withActiveDelPackageSelector(activeDelegatePackages) .build(); BidiGlobalDir dir = BidiGlobalDir.forStaticLocale(msgs.getLocaleString()); Scoper scoper = new Scoper(apiCallScope, dir, msgs.getLocaleString()); CompiledTemplate template = templateFactory.create(data, ij); return doRender(template, scoper, out, context); }
@Override public RendererImpl setXidRenamingMap(SoyIdRenamingMap xidRenamingMap) { contextBuilder.withXidRenamingMap(xidRenamingMap); return this; }
@Override public RendererImpl setCssRenamingMap(SoyCssRenamingMap cssRenamingMap) { contextBuilder.withCssRenamingMap(cssRenamingMap); return this; }