Re: Teething troubles
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.devel |
|---|---|
| Message-ID | <[email protected]> |
Friday, March 9, 2012, 4:49:14 PM, Tim Pizey wrote: > On 9 March 2012 15:03, Daniel Dekany wrote: >> Friday, March 9, 2012, 2:34:41 PM, Tim Pizey wrote: >> >>> On 9 March 2012 13:13, Daniel Dekany wrote: >>>> Friday, March 9, 2012, 11:14:27 AM, Tim Pizey wrote: > [snip] >> So, WebMacro just removed "get" from the method names but leave them >> capital, if I understand it well. > > Yes, I suspect it also understands standard beans > >> I didn't remember that. And yes, I >> find it strange, but, well, probably it was one guy's lonely decision, >> back then in the Java stone-age... things like that happen (like >> FreeMarker has some funny pieces of heritage too... a lot, actually). >> (That Velocity does this too doesn't mean much, as they in many >> respects just quickly copied WebMacro when they couldn't find an >> agreement with its author, and they needed something like WebMacro >> quickly.) > > I remember :) > >>> I have read java.beans.Introspector, and don't like it, >> >> That just implements the JavaBeans "standard", which is an integral >> part of the Java software ecosystem. The whole stack is full of beans. > > I looked for a @since but there was none JavaBeans were surely there in JDK 1.1, 1997. >>> I much prefer the Velocity way. >> >> Why? > > More readable, no information loss. There's no information lose. A class has some JavaBean properties, and that's it. You can access them by property name in FreeMarker. The getter methods are still there, like you can write foo.getBar(), but if that's also the reader method of the property "bar", you can and should write foo.bar instead. > I am no processing velocity templates with perl and regular > expressions to meet the FM way. > > > cheers > Tim > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > FreeMarker-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freemarker-devel > -- Best regards, Daniel Dekany ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/