-
Type:
Suggestion
-
Resolution: Fixed
-
Component/s: None
NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.
I would like to take advantage of some features in the current Velocity release, specifically the 'hasNext' looping test enabling for example, the conditional addition of a trailing ', ' when building a list of javascript values.
This would allow:
#foreach( $customer in $customerList )
$customer.Name#if( $velocityHasNext ),#end
#end
But would require a velocity.properties addition:
directive.foreach.iterator.name = velocityHasNext
Enabling this would reduce the need for 'rendering' code to be done within Java classes when it doesn't need to be.
- relates to
-
JRACLOUD-20416 Upgrade Velocity from 1.4.x to 1.6.x
- Closed