Literal directive

Use the Literal directive around JavaScript, VBScript, or Cascading Style Sheet text that contains curly brace characters. The Literal directive identifies a part of the source HTML that is to be copied to the generated stream exactly as entered. The system does not process the text within the directive, except to find the end of the directive.

Use the Literal directive around curly braces { } that do not indicate a Pega Platform directive.

Example

Here is an example of the Literal directive used in a style sheet.

BODY
{={=}
	background:#FFFFFF;
	font-family:{pxRequestor.pyFontName};
	color:#000000;
	font-size:9pt;
	line-height:14pt;
	letter-spacing:0.5pt;
{=}=}

The opening brace {={=} appears in the output HTML stream as:

Opening brace {

The closing brace {=}=} appears in the output HTML stream as

closing brace }

As an alternative to the Literal directive, use the Delimiters directive.

Complete syntax

In the syntax presentations below:

{= style sheet or script goes here =}

Include the optional keyword LITERAL to make it easier for you or others to read your source HTML. You can also add comments. You cannot embed this syntax.

{LITERAL [comments] }
style sheet or script goes here
{/LITERAL [comments] }

As an alternative to the {/LITERAL} tag, use this ending tag:

{ENDLITERAL [comments]}

Directives