Re: [FM3] Basic treatment of null VS missing

2018-03-03 Thread Denis Bredelet
Hi Daniel, > So, here's my plan for FM3. > > The template language will know null, and it's different that from > "missing". I think so far everyone who has used FM2 heavily will > agree. Yeah! > On the API and implementation level we will have a singleton, > TemplateNullModel.INSTANCE, that st

Re: Alternative to ${exp}

2017-11-28 Thread Denis Bredelet
Hi Daniel, > On 28 Nov 2017, at 15:45, Jacques Le Roux > wrote: > > Le 28/11/2017 à 16:43, Jacques Le Roux a écrit : >> >> >> Le 28/11/2017 à 10:45, Daniel Dekany a écrit : >>> This problem comes up again and again: the ${exp} syntax clashes with >>> the syntax of the thing the user wants to

Re: Attempting graduation?

2017-11-21 Thread Denis Bredelet
Hi, I would like to change that sentence in the description: You meant to prepare the data to display in a real programming language, like issue database queries and do business calculations, and then the template displays that already prepared data. What do you think of: A general pr

Re: [FM3] Template file extension

2017-06-14 Thread Denis Bredelet
Hi Daniel, > On 14 Jun 2017, at 23:14, Daniel Dekany wrote: > > Wednesday, June 14, 2017, 4:32:41 PM, Woonsan Ko wrote: > >> On Wed, Jun 14, 2017 at 5:25 AM, Daniel Dekany > > wrote: >>> For FM3, because the template language changes, we need to change the >>> standar

Re: [FM3] Should localized template lookup be off by default?

2017-06-14 Thread Denis Bredelet
Hi Daniel, >> * Assuming that the caching works the IO is minimal even for cache misses >> * Assuming that the little IO becomes relevant those user will be heavy >> users anyway >> >> Thanks in advance, >> >> Siegfried Goeschl >> >> >>> On 14 Jun 2017, at 11:12, Daniel Dekany wrote: >>> >>

Re: New ASF Member from FreeMarker Community

2017-04-05 Thread Denis Bredelet
Great stuff, well done Daniel. — Denis. > On 5 Apr 2017, at 21:15, Pradeep Murugesan > wrote: > > Congratulations Daniel [?] > > > > Pradeep. > > > From: Jacopo Cappellato > Sent: Wednesday, April 5, 2017 9:09:30 AM > To: dev@freemarker.incubator.apache.or

Re: [FM3] Solving FM2 caching problems due to locale etc.

2017-03-26 Thread Denis Bredelet
Hi Daniel, >> Hi, >> Template.process(...) would be removed, as it's not the duty of the Template to create the Environment anymore. On the level of the more expert Environment API, this translates to something like this: Environment env = new Environment(cf

Re: [FM3] Solving FM2 caching problems due to locale etc.

2017-03-26 Thread Denis Bredelet
Hi, >> Template.process(...) would be removed, as it's not the duty of the >> Template to create the Environment anymore. >> >> On the level of the more expert Environment API, this translates to >> something like this: >> >>Environment env = new Environment(cfg, dataModel, out); >>env.s

Re: Preparing for releasing 2.3.26 - any feedback?

2017-03-14 Thread Denis Bredelet
Hi Daniel, >>> http://freemarker.org/builds/2.3.26-nightly/versions_2_3_26.html >>> >> >> Thanks for wrapping up the changes! >> I had a difficulty in reading some changes since JIRA tickets were not >> linked to some. > > Those

Re: About a Freemarker template evaluator service

2017-02-25 Thread Denis Bredelet
Hi, > Le 25 févr. 2017 à 10:16, Christoph Rüger a écrit : > > +1 for incubator-freemarker-online-tester > > Am 25.02.2017 11:10 vorm. schrieb "Daniel Dekany" : > > Friday, February 24, 2017, 10:42:46 PM, Barrie Selack wrote: > >> I'd probably add something (like tester) as just -online doesn't

Re: [FM3] Configuration mutability (Was: [FM3] Configuration API simplification)

2017-02-19 Thread Denis Bredelet
My message was not clear, I mean builders are not required for standard configuration settings if they are simple types. > Le 19 févr. 2017 à 10:24, Denis Bredelet a écrit : > > Hi Daniel, > >>>> But then we lose the immutability of the built object, which was

Re: [FM3] Configuration mutability (Was: [FM3] Configuration API simplification)

2017-02-19 Thread Denis Bredelet
Hi Daniel, >>> But then we lose the immutability of the built object, which was the >>> point of using builders on the first place. >> >> Ah, you're totally right! If builder is able to update an immutable >> object, then the object turns out to be mutable indirectly through the >> builder. I mis

Re: [FM3] Switching to camel case, supporting only that

2017-01-21 Thread Denis Bredelet
Hi Daniel, >> FM2 traditionally uses a weird naming convention, where directive >> names are all-lower-case (like #elseif), and other names use snake >> case (like ?upper_case or date_format). For a while it also supports >> camel case (you just use it in the template, like ?upperCase, #elseIf, >>

Re: Using Social Media to Help Promote Freemarker

2017-01-07 Thread Denis Bredelet
> Le 7 janv. 2017 à 12:36, Daniel Dekany a écrit : > > Saturday, January 7, 2017, 9:37:36 AM, Denis Bredelet wrote: > >> Hi Daniel, >> >>>> That was also my impression on the OFBiz tweet, as a software >>>> developer. The last is impor

Re: Using Social Media to Help Promote Freemarker

2017-01-07 Thread Denis Bredelet
Hi Daniel, >> That was also my impression on the OFBiz tweet, as a software >> developer. The last is important, that I'm looking at it as a >> developer. FreeMarker, unless OFBiz, is mostly only interesting for >> them I believe. It doesn't have an UI that a manager type could click >> around. It