You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Geir Magnusson Jr <ge...@4quarters.com> on 2003/12/23 13:28:37 UTC

Re: #foreach (${item} in ${list}) behavior inconsistent with #foreach ($item in $list)

On Dec 18, 2003, at 8:54 PM, Mike Kienenberger wrote:

> I programmically converted over a bunch of webobjects templates into 
> velocity
> templates, and am now finding I need to remove the {}s around the 
> #foreach
> item variable.
>
> 1) #foreach (${item} in ${list})
>
> 2) #foreach ($item in $list)
>
> Is there a practical reason why the first notation fails to populate 
> $item?
>
> I'm guessing it's purely a technical reason (doesn't get parsed 
> properly,
> maybe creates a variable named "{item}" instead).

technical reason == bug :)

>
> -Mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
>
>
-- 
Geir Magnusson Jr                                   203-247-1713(m)
geir@4quarters.com


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org