API Docs for: 0.8.0
Show:

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} String

    The raw value to be included in the template processing

  • [htmlEncode=true] Boolean optional

    Indicates if the value should be encoded during serialization.

Item Index

Methods

doEncode

()

Specifies that the value should be encoded for HTML

encode

(
  • [doHtmlEncoding]
)
Boolean

Encodes the value for an HTML document when a value is provided.

Parameters:

  • [doHtmlEncoding] Boolean optional

    Sets the property to encode the value to HTML

Returns:

Boolean:

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:

String:

A string representation of the value that follows the processing instructions.

val

() String

Retrieves the processed value represented by this object.

Returns:

String:

The processed value