Description
To escape a directive, one must precede it with an escape backslash. According to the documentation:
#if ($foo)
\$bar
#end
Should render as
#if $foo)
$bar
#end
And it does.
However, if you enclose the directive in curly brackets, the escape is ignored:
#
($foo)
\$bar
#
Ignores the escape and evaluates to
\
(assuming $foo is false).