Re: [Freemarker-devel] FreeMarker 2.3.20 is released
Daniel Dekany <[email protected]> Sat, 6 Jul 2013 14:16:34 +0200
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Friday, July 5, 2013, 1:31:29 PM, Albert Kam wrote:
> That is a lot of improvements, and i personaly like the ?join
> Is it possible in the future to support [1, 2, 3]?join(", ", "and") to output "1, 2, and 3" ?
The 2nd and 3rd parameter positions are already taken for the empty
value and the list ending. But what you want could still be written as
?join([", ", "and"]), i.e., the 1st parameter could be either a string
or a sequence of strings. But then there's the problem that we have
entered a quite language- and convention-specific domain (which is
sometimes a bad idea for core functions). Like in some languages, or
even sometimes in English (conventions...) you don't put comma before
the "and". But when you do, there's an exception when you have only
two items as that you always write without comma (don't you?). In this
most complicated case it could be like ?join([", ", ", and", "and"])
where the required first item is the default separator, the optional
2nd is the default separator before the last item, and the optional
last item is what's used if there's are only two items. Maybe that
covers most languages and conventions.
--
Thanks,
Daniel Dekany
> Thank you so much !
>
>
> On Mon, Jul 1, 2013 at 11:55 PM, Daniel Dekany <[email protected]> wrote:
> Now it's in the Maven Central Repo. (Yeah, this was slow. It turned
> out on Friday that the method we are using to sync to the Central was
> discontinued last year. So I had to set up the new one, and for that
> the first syncing requires manual approval on the side of Sonetype,
> and it was weekend... Anyway from now on the delay should be no more
> than 2 hours.)
>
> --
> Thanks,
> Daniel Dekany
>
> Friday, June 28, 2013, 2:17:58 AM, Daniel Dekany wrote:
>
>> Friday, June 28, 2013, 12:26:55 AM, Jaime Garza wrote:
>>
>>> Thanks Daniel,
>>>
>>> Will this be in the maven central repository as well? I searched
>>> in mvnrepository.com, and search.maven.org and it is not yet listed.
>>
>> I guess it will be there, eventually. I have uploaded it to the update
>> site, but I don't know when they will fetch it. (Or if they still do
>> fetching at all... last year they did.)
>>
>>> Jaime
>>>
>>> -----Original Message-----
>>> From: Daniel Dekany [mailto:[email protected]]
>>> Sent: Thursday, June 27, 2013 3:10 PM
>>> To: [email protected];
>>> [email protected];
>>> [email protected]
>>> Subject: [Freemarker-devel] FreeMarker 2.3.20 is released
>>>
>>> FreeMarker 2.3.20 is released
>>>
>>> This version comes with better error messages, better boolean
>>> formatting, higher multi-core performance, and many other smaller
>>> improvements and fixes. See the complete change log here:
>>>
>>> http://freemarker.org/docs/versions_2_3_20.html
>>>
>>> Download it here:
>>>
>>>
>>> http://sourceforge.net/projects/freemarker/files/freemarker/2.3.20/freemarker-2.3.20.tar.gz/download
>>>
>>> (For Google App Engine, binary only:
>>>
>>> http://sourceforge.net/projects/freemarker/files/freemarker/2.3.20/freemarker-gae-2.3.20.jar/download)
>>>
>>> --
>>> Best regards,
>>> Daniel Dekany
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev