/// <summary> /// Renders the specified HTML buildable object /// </summary> /// <param name="buildable"></param> public void Render(IHtmlBuildable buildable) { Render(buildable.Render()); Render(buildable.Complete()); }
/// <summary> /// Nests the specified child element into this HTML element /// </summary> /// <param name="child">Child element</param> /// <returns>This instance itself</returns> /// <remarks> /// Child elements are rendered in the order they are nested /// </remarks> public HtmlElementBase <TThis> AddChild(IHtmlBuildable child) { _nestedElements.Add(child); child.Depth = Depth + 1; return(this); }