[ 
https://issues.apache.org/jira/browse/VELOCITY-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Henning Schmiedehausen closed VELOCITY-380.
-------------------------------------------


> "Formal" directive notation
> ---------------------------
>
>                 Key: VELOCITY-380
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-380
>             Project: Velocity
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 1.5
>         Environment: Operating System: Windows 2000
> Platform: PC
>            Reporter: Richard Wiseman
>         Assigned To: Velocity-Dev List
>            Priority: Minor
>
> 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 { and 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!
> And if $a is set to 2 (for example), there is no output at all because the
> #{else} is not spotted.

-- 
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