Table of Contents

Class HtmlGeneratorExtended

Namespace
SunamoHtml.Generators
Assembly
SunamoHtml.dll

EN: Extended HTML generator with detail display methods for labels, anchors, and mailto links. CZ: Rozšířený HTML generátor s metodami pro zobrazení detailů s labely, odkazy a mailto linky.

public class HtmlGeneratorExtended : HtmlGenerator
Inheritance
HtmlGeneratorExtended
Derived
Inherited Members
Extension Methods

Methods

BoilerplateEnd()

Generates HTML5 boilerplate end section (closing body and html tags). Currently throws NotImplementedException - needs implementation.

public static void BoilerplateEnd()

BoilerplateMiddle(BoilerplateMiddleArgs?)

Generates HTML5 boilerplate middle section (body tag with onload). Currently throws NotImplementedException - needs implementation.

public static void BoilerplateMiddle(BoilerplateMiddleArgs? args = null)

Parameters

args BoilerplateMiddleArgs

Optional arguments containing onload handler.

BoilerplateStart(BoilerplateStartArgs)

Generates HTML5 boilerplate start section with CSS and JavaScript. Currently throws NotImplementedException - needs implementation.

public static Task BoilerplateStart(BoilerplateStartArgs args)

Parameters

args BoilerplateStartArgs

Arguments containing CSS and JS paths/content.

Returns

Task

Detail(string, string)

Writes a detail line with label and value. Only outputs if the value parameter is not empty.

public void Detail(string label, string htmlContent)

Parameters

label string

The label text to display before the value.

htmlContent string

The value to display.

DetailAnchor(string, string, string)

Writes a detail line with label and anchor link using a URL string. Only outputs if the name parameter is not empty.

public void DetailAnchor(string label, string url, string name)

Parameters

label string

The label text to display before the value.

url string

The URL string for the anchor link. If empty, displays plain text.

name string

The name/text to display or link to.

DetailAnchor(string, Uri, string)

Writes a detail line with label and anchor link. Only outputs if the name parameter is not empty.

public void DetailAnchor(string label, Uri uri, string name)

Parameters

label string

The label text to display before the value.

uri Uri

The URI for the anchor link. If empty, displays plain text.

name string

The name/text to display or link to.

DetailMailto(string, string)

Writes a detail line with label and mailto link. Only outputs if the email parameter is not empty.

public void DetailMailto(string label, string email)

Parameters

label string

The label text to display before the email.

email string

The email address to create a mailto link for.

DetailNewLine(string, string)

Writes a detail line with label on separate line from value. Only outputs if the HTML content is not empty.

public void DetailNewLine(string label, string htmlContent)

Parameters

label string

The label text to display.

htmlContent string

The HTML content to display on the next line.