Escaping of directives does not work if the directive is in curly brackets
--------------------------------------------------------------------------

                 Key: VELOCITY-616
                 URL: https://issues.apache.org/jira/browse/VELOCITY-616
             Project: Velocity
          Issue Type: Bug
          Components: Engine
    Affects Versions: 1.5
            Reporter: Alik


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:
   \#{if} ($foo)
      \$bar
   \#{end}
Ignores the escape and evaluates to
   \
(assuming $foo is false).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to