You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Petr Marhan (JIRA)" <de...@velocity.apache.org> on 2008/10/01 19:03:44 UTC
[jira] Commented: (VELOCITY-337) Need translations of new #{else}
syntax documentation
[ https://issues.apache.org/jira/browse/VELOCITY-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636096#action_12636096 ]
Petr Marhan commented on VELOCITY-337:
--------------------------------------
There needs to be done some clarification in VTL reference
It says:
# [ { ] if [ } ] ( [condition] ) [output] [ # [ { ] elseif [ } ] ( [condition] ) [output] ]* [ # [ { ] else [ } ] [output] ] # [ { ] end [ } ]
witch means that
#if ($foo) output #{end}
alternatively
#{if} ($foo) output #end
is correct. In fact it is NOT.
> 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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org