23 using System.Collections.Generic;
26 namespace Ntp.Analyzer.Render
39 this.htmlObject = htmlObject;
40 children =
new List<IHtmlObject>(htmlObject.
Children);
52 public IEnumerable<IHtmlObject> Children => children.ToArray();
60 return htmlObject.RenderHead();
68 var builder =
new StringBuilder();
70 builder.Append(RenderHead());
71 builder.Append(htmlObject.Render());
76 builder.Append(childRenderer.Render());
79 builder.Append(RenderFooter());
81 return builder.ToString();
90 return htmlObject.RenderFooter();
string RenderFooter()
Renders the footer of the object.
IEnumerable< IHtmlObject > Children
readonly IHtmlObject htmlObject
string RenderHead()
Renders the head of the object.
Renders IHtmlObjects into plain text for display in browsers.
readonly List< IHtmlObject > children
override string Render()
Render this instance plus all child instances.
HtmlRenderer(IHtmlObject htmlObject)
Initializes a new instance of the HtmlRenderer class.