Resolve all HTML Templates in the supplied HTML String.

<para> HTML Templates are enclosed in curly braces. Template parameter use either a pipe character ('\') or an equals sign to define their parameters. This varies per template; usually, if the template only has a single parameter a pipe is used, otherwise named parameters are defined, e.g. heading='My Heading'. </para> <para> The following HTML Templates will be resovled: <list> <item><code>{{STYLESHEET}}</code><description>This should be put in the Head section and will generate a link to the general_XXXX.css Stylesheet (located in the User's template folder or the application/Templates folder if not found here). It will also insert a BASE tag so that the base URL for all images is the image sub-folder of the User's Template folder.</description></item> <item><code>{{WARNING|warning message|bold}}</code><description>Generates a warning message.</description></item> <item><code>{{INFO|information message}}</code><description>Generates an information message.</description></item> <item><code>{{ALERT|alert message}}</code><description>Generates an alert message.</description></item> <item><code>{{POPNOTE|note details html}}</code><description>Generates a popup note.</description></item> <item><code>{{TICK}}</code><description>Inserts a Tick.</description></item> <item><code>{{ICON|resourceId|size|cssClassOrStyle}}</code><description>Inserts an Icon. Since Icons are stored in the User Interface, this will only work if the finPOWER Connect User Interface is connected to this business layer. Size will default to 16 if omitted.</description></item> <item><code>{{COLOURBLOCK|colour|tooltip|width|height}}</code><description>Inserts a Colour Block. Width and Height are both assumed to be 14 pixels if omitted.</description></item> </list> </para>

Syntax

finHtmlTemplateUtilities.ResolveTemplates(html, [replaceParagraphs])

Parameters

NameTypeOptionalByRefDescription
html String The HTML String.
replaceParagraphs Boolean Optional Indicates whether to replace all HTML p elements with div elements with a class of 'p' to avoid IE collapsing margin issues. If omitted, a value of True is assumed.

Return Value

String

A String value.

Member of:
finHtmlTemplateUtilities
Namespace:
Intersoft.finSupport6
Assembly:
finSupport6, Version=6.0.3
Target Framework:
.NET 9.0