TemplateValue Class
A value that has special meaning to TemplateService. It acts as a wrapper for a value to be used in a template along with special processing instructions.
Constructor
TemplateValue
-
{val}
-
[htmlEncode=true]
Parameters:
-
{val}
StringThe raw value to be included in the template processing
-
[htmlEncode=true]
Boolean optionalIndicates if the value should be encoded during serialization.
Item Index
Methods
Methods
doEncode
()
Specifies that the value should be encoded for HTML
encode
-
[doHtmlEncoding]
Encodes the value for an HTML document when a value is provided.
Parameters:
-
[doHtmlEncoding]
Boolean optionalSets the property to encode the value to HTML
Returns:
The current value of the htmlEncode property
skipEncode
()
Specifies that the value should not be encoded for HTML
toString
()
String
Overrides the toString function in order to properly serialize the value.
Returns:
A string representation of the value that follows the processing instructions.
val
()
String
Retrieves the processed value represented by this object.
Returns:
The processed value