[
https://issues.apache.org/jira/browse/VELOCITY-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636154#action_12636154
]
Nathan Bubna commented on VELOCITY-337:
---------------------------------------
no, both of your examples are valid and work (just tested in 1.6-dev).
> Need translations of new #{else} syntax documentation
> -----------------------------------------------------
>
> Key: VELOCITY-337
> URL: https://issues.apache.org/jira/browse/VELOCITY-337
> Project: Velocity
> Issue Type: Improvement
> Components: Documentation
> Affects Versions: 1.5
> Environment: Operating System: Windows XP
> Platform: PC
> Reporter: Will Glass-Husain
>
> Need to update Spanish, Finnish, French versions of the user guide with the
> new #{directive} syntax.
> (also wouldn't hurt to check for consistency with other new items - use svn
> diff). Here's the new English copy (from revision 125388)
> Directives always begin with a #. Like references, the name of the directive
> may be bracketed by a { and a } symbol. This is useful with directives that
> are immediately followed by text. For example the following produces an
> error:
>
> #if($a==1)true enough#elseno way!#end
>
> In such a case, use the brackets to separate #else from the rest of the line.
>
> #if($a==1)true enough#{else}no way!#end
--
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]