HTML Scripts
HTML-specific methods 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 method 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 method 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 method 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 Scripts API Reference for the full list of HTML methods available.