On Tue, Sep 16, 2008 at 1:46 PM, Christopher Schultz
<[EMAIL PROTECTED]> wrote:
> Nathan,
>
> Nathan Bubna wrote:
>> #whatever({ 'foo' : 'bar', "baz" : "bat" })
>
> I didn't realize that this syntax was possible. I'm still on Velocity
> 1.4 where, for instance, you can't do this:
>
> #whatever($velocityCount + 1)
>
> I just assumed that creating a Map on the fly wasn't an option.

it was added in v1.5

> I wonder if the Struts guys knew this was possible... it's a much more
> elegant way to do it and results in faster rendering.

i think it was not available when they started.  whether they know
now, i don't know.  they haven't kept pace with VelocityTools at all
(they appear to be on Tools 1.1 still), so i'd be surprised to find
they use Velocity 1.5.  i hope they at least recommend Velocity 1.4...

> -chris
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to