Nathan Bubna <[EMAIL PROTECTED]> wrote:
Mike Kienenberger said:
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.
Hey Nathan,
Thanks for the confirmation.
I hate putting something into bugzilla when it's simply my misinterpretation of the way things should work.
I'll go ahead and file this tomorrow.
It would be huge if you'd take a stab at writing a new test case under velocity/tests/templates/ velocity/tests/templates/results (see the existing foreach-*.vm and foreach-*.res files for an example).
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]