Freemarker update

Posted by Jacques Le Roux on
URL: http://ofbiz.116.s1.nabble.com/Freemarker-update-tp3514516.html

Hi,

It's a while we did not update Freemarker. We use version 2.3.10 (2007-04-20), soon (16th of May) 2.3.17 will be released with some
interesting features and numerous bug fixes.

http://freemarker.org/docs-rc/versions_2_3_11.html
(?c) only used in geolocation.ftl, I don't expect much problems there
Interesting:  A new model interface, TemplateDirectiveModel provides an easier paradigm for implementing user-defined directives
than TemplateTransformModel did previously. TemplateTransformModel will be deprecated. So should still work, cases could be updated,
and easier way to do it now

http://freemarker.org/docs-rc/versions_2_3_12.html
In the templates, now you can conveniently call Java methods that use the Java 5 varargs feature (variable-length argument lists).

http://freemarker.org/docs-rc/versions_2_3_13.html
New built-ins for rounding numbers: round, floor, ceiling.
Reworked template caching mechanism for radically improved concurrent performance (Achieved 20x speedup)

http://freemarker.org/docs-rc/versions_2_3_14.html
New built-in: xhtml

http://freemarker.org/docs-rc/versions_2_3_17rc1.html
?seq_index_of and ?seq_last_index_of now works on collections
?long now works for date, date-time and time values, and returns the milliseconds since the epoch (as java.util.Date.getTime()).
New special variable, now. This returns the current date-time.
?sort and ?sort_by now supports sorting boolean values.
FreeMarker now can log its messages directly using SLF4J or Apache Commons Logging.

So I'd like to update soon using 2.3.17. Someone is currently testing the RC1 in a custome application  (based on OFBiz of course)

Jacques