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
argsBoilerplateMiddleArgsOptional 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
argsBoilerplateStartArgsArguments containing CSS and JS paths/content.
Returns
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
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
labelstringThe label text to display before the value.
urlstringThe URL string for the anchor link. If empty, displays plain text.
namestringThe 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
labelstringThe label text to display before the value.
uriUriThe URI for the anchor link. If empty, displays plain text.
namestringThe 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
labelstringThe label text to display before the email.
emailstringThe 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)