[
https://issues.apache.org/jira/browse/VELOCITY-898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claude Brisson resolved VELOCITY-898.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.1
Implemented as {{$\{foo|'foo'}}} where 'foo' can be any valid VTL expression.
{{$\{foo|${bar|'baz'}}}} is valid.
> Implement default values in formal references
> ---------------------------------------------
>
> Key: VELOCITY-898
> URL: https://issues.apache.org/jira/browse/VELOCITY-898
> Project: Velocity
> Issue Type: Improvement
> Components: Engine
> Affects Versions: 2.1.x
> Reporter: Claude Brisson
> Assignee: Claude Brisson
> Priority: Major
> Fix For: 2.1
>
>
> We should take profit of the formal reference syntax to implement default
> values:
> {{ ${foo|"bar"}}}
> It could even be repeated, or nested...
> {{ ${foo|$bar|"baz"}}}
> {{ ${foo|${bar|"baz}}}}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]