On Feb 17, 2009, at 23:19 , Claude Brisson wrote:

On mar, 2009-02-17 at 20:56 -0700, Byron Foster wrote:
I believe firmly in not compromising the simplicity of VTL at the
expense of additional functionality, and I think it's great that non-
programmers can be productive in it. I believe that all the changes I have proposed or implemented are consistent with that. However, there are also sophisticated users of Velocity, I hope, that can make use of
the additional control, and with the additional control make VTL
templates more readable and maintainable.  I think these two uses of
Velocity can easily coexist.

Sophisticated users always find a way.

#foreach($foo in $outer)
 #foreach($bar in $inner)
   #if($goAway) #set($leave = true) #end
   #break
 #end
 #if($leave) #break
#end

Yea, I won't argue #break functionality, as stated in the issue I don't really think it is necessary either. I would say something more specific like #return, or as referenced in the issue, the use of an 'index' keyword in #foreach.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to