public void WriteComposedFragments(FragmentRenderMode renderMode, ComposedHtmlWriter htmlWriter) { var page = new CompositedResponse(); Render(_pageDefinition.RootElement, new RenderAttributes { Mode = renderMode }, htmlWriter); }
public RenderingFragmentCollection Execute(Page.Elements.PageComposition pageRendering, FragmentRenderMode renderMode) { var transformationResult = new RenderingFragmentCollection(); var cached = new CachedContentFragmentRenderer().Execute(pageRendering.RootElement); transformationResult.Add(cached); foreach (var engine in _engines) { var localBatch = engine.Execute(pageRendering.RootElement); transformationResult.Add(localBatch); } return(transformationResult); }