public dynamic RenderLayout(string data, string displayType = null, IContent content = null) { var elements = _serializer.Deserialize(data, new DescribeElementsContext { Content = content }); var layoutRoot = _elementDisplay.DisplayElements(elements, content, displayType); return(layoutRoot); }
protected override DriverResult Display(LayoutPart part, string displayType, dynamic shapeHelper) { return(Combined( ContentShape("Parts_Layout", () => { var elements = _layoutManager.LoadElements(part); var layoutRoot = _elementDisplay.DisplayElements(elements, part, displayType: displayType); return shapeHelper.Parts_Layout(LayoutRoot: layoutRoot); }), ContentShape("Parts_Layout_Summary", () => { var layoutShape = _contentPartDisplay.Value.BuildDisplay(part); var layoutHtml = _shapeDisplay.Display(layoutShape); return shapeHelper.Parts_Layout_Summary(LayoutHtml: layoutHtml); }))); }