Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Incomplete
-
1.5
-
None
-
None
-
Operating System: Windows 2000
Platform: PC
-
34989
Description
Unless it's something I have to enable (and I've seen no mention of that in any
documentation), I don't believe using curly brackets to surround directives
actually works. According to
http://jakarta.apache.org/velocity/user-guide.html#Directives "Like references,
the name of the directive may be bracketed by a
symbol." I tried the
example in that section:
-
- First, a bit I added:
#set( $a = 1 ) - The actual example line:
#if($a==1)true enough# {else}no way!#end
The output of this is, unexpectedly:
true enough#{else}no way!
- First, a bit I added:
And if $a is set to 2 (for example), there is no output at all because the
#
is not spotted.