HTML Filters

HTML-specific filters for use in .html page formats.

htmlDump

Generates a HTML <table/> by recursively traversing the public members of a .NET instance object graph.
headerStyle can be any Text Style

htmlDump customizations

htmlClass

Helper filter to simplify rendering a class="..." list on HTML elements, it accepts Dictionary of boolean flags, List of strings or string, e.g:

Or use htmlClassList if you just want the list of classes.

htmlAttrs

Helper filter to simplify rendering HTML attributes on HTML elements, it accepts a Dictionary of Key/Value Pairs which will be rendered as HTML attributes. Keys with a boolean value will only render the attribute name if it's true and htmlAttrs also supports common JS keyword overrides for htmlFor and className, e.g:

htmlError

Renders an Exception into HTML, in DebugMode this renders a detailed view using the htmlErrorDebug filter otherwise it's rendered using htmlErrorMessage.

htmlErrorMessage

Renders the Exception Message into into HTML using the default class in Args[DefaultErrorClassName], overridable with className:

htmlErrorDebug

Renders a debug view of the Exception into into HTML using the default class in Args[DefaultErrorClassName], overridable with className:

See the Filters API Reference for the full list of HTML filters available.

made with by ServiceStack