Post by Albert KamThat 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
Post by Albert KamThank you so much !
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
Post by Daniel DekanyPost by Jaime GarzaThanks 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.)
Post by Jaime GarzaJaime
-----Original Message-----
Sent: Thursday, June 27, 2013 3:10 PM
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
http://freemarker.org/docs/versions_2_3_20.html
http://sourceforge.net/projects/freemarker/files/freemarker/2.3.20/freemarker-2.3.20.tar.gz/download
http://sourceforge.net/projects/freemarker/files/freemarker/2.3.20/freemarker-gae-2.3.20.jar/download)
--
Best regards,
Daniel Dekany