velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain" <wglasshus...@gmail.com>
Subject Re: Syntax style to direct access to maps & collections
Date Fri, 16 Nov 2007 13:37:41 GMT
Hi,

For maps, do

$myMap.color

WILL

On Nov 16, 2007 1:43 AM, Javier Velez <jvelez@lsi.uned.es> wrote:

> Is there any Velocity style to access Maps and collections?
> For instance:
>
> $myCollection[0] instead of $myCollection.get(0)
> $myMap['color'] instead of $myMap.get('color')
>
> If not, I think it could be of interest to add it for the next version ;)
>
> Javier.
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.15.33/1133 - Release Date:
> 15/11/2007 20:57
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>



-- 
Forio Business Simulations

Will Glass-Husain
wglass@forio.com
www.forio.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message