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.
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.
In the syntax presentations below:
[
and ]
define optional parts of the directive. Do not type the brackets.{
and }
mark the start and end of the directive.{= 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]}