Geir Magnusson Jr. wrote: > On 5/3/02 11:38 AM, "Jonathan Revusky" <[EMAIL PROTECTED]> wrote: > > >>Geir Magnusson Jr. wrote: >> >>>On 5/3/02 11:06 AM, "Jonathan Revusky" <[EMAIL PROTECTED]> wrote: >>> >>> >>> >>>>Geir Magnusson Jr. wrote: >>>> >>>> >>>>>Every bone in my body tells me this is the wrong thing to do, but I *just* >>>>>can't resist. >>>> >>>>With all due respect, I think it is quite erroneous. You see, you're >>>>making an invalid comparison. On the scale of software engineering >>>>values, Velocity is closer to JSP than FreeMarker is, since Velocity >>>>exposes all of the public methods in an object to the template author. >>>> >>>>Now, you can do also the full reflection approach in FreeMarker, but >>>>that's not the default. >>>> >>>>So FreeMarker has a much greater tendency to enforce the MVC separation >>>>than Velocity does. >>> >>> >>>Ok. >>> >>>It was only a joke. >> >>Yes, you said that. Not a joke in the best of taste, though. I don't >>think you would like to hear Velocity being likened to JSP. > > > Er, I did liken Velocity to JSP. > > >>It also wasn't too clear what the joke's punch line was. > > > Sort of a visual/pattern thing. Not everyone is going to get it, I suppose.
It blew right past me. I didn't get it. My interpretation of things was that you were just trying to blow some smoke and confuse matters. I mean, it's dead simple. There are legitimate reasons to want to break out of a loop. FreeMarker allows for that and Velocity does not. I guess you said: "Of course, I'm only joking." in order to leave yourself an escape hatch, right? :-) > If I was a really funny guy, I would have done : > > ---- > > Hi $originalPoster, > > $target does not have this feature. > > I thought you might be interested in knowing that $myAlternative (as of > version $currVer) does have this feature. Your code above would look like: > > #set($vallist =[ $refkey, $iterativeString, $stopVal] ) > #demosyntax( 'foreach' $vallist ) > > As you see above, $myAlternative's syntax is somewhat different from > $target. However, $myAlternative $currVer also has a utility for > automatically > converting $target templates to the $myAlternative syntax. > > Best Regards, > > $respondent Well, I do appreciate the template. It may come in handy for some future messages. "FreeMarker has the feature. Velocity does not." :-) With the template you've provided, I'll just need to fill in the blanks each time. I hope you don't mind. After all, open source is based on the free circulation of information. Cheers, Jonathan Revusky -- Lead developer of FreeMarker http://freemarker.sourceforge.net/ Build robust web appications with the Niggle Web Application Framework http://niggle.org/ Available for Java/Internet Consulting -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
