Mike Kienenberger said:
> 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 can't think of one.

> I'm guessing it's purely a technical reason (doesn't get parsed properly,
> maybe creates a variable named "{item}" instead).

yeah, i think it's a bug too.  either way, it's something worth putting in
bugzilla to be sure one of the committers sees it.

Nathan Bubna
[EMAIL PROTECTED]


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

Reply via email to