Template Engine language reference > Escaping TEL grammar

Escaping TEL grammar
If you want to output text that is recognized as TEL grammar, you must escape this text. For example, if you want to output ##ALERT!##, you will see that this string is not included in the output since it is recognized as a line comment.
To output this string, you need to enclose it in the un-parsed content keywords #[[ and ]]#.
#[[##ALERT!##]]#
#set($abc=123)
$abc
#[[#set($def=456)
$def]]#
##ALERT!##
123
#set($def=456)
$def
To escape valid TEL references (# and $), there is an alternative escape mechanism. If you for example have a variable named $sum and want to output the string $sum, you can escape the dollar sign ($) with a backslash.
#set($abc=123)
$abc
Value of \$abc above
is defined using \#set()
123
Value of $abc above
is defined using #set()
OpenText StreamServe 5.6 Updated: 2013-03-01