Auto-escaping feature in FreeMarker 2.3.24 (and some others)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Auto-escaping feature in FreeMarker 2.3.24 (and some others)

Daniel Dekany
The most important new feature in the forthcoming 2.3.24 is
auto-escaping, which deprecates the #escape directive, and works very
differently than that. The major reason of the difference is that it
treats print-ready (like already escaped) text as a value of its own
type, called "markup output". This opens up possibilities like
automatically preventing double-escaping for values coming from the
data-model (think of i10n messages), among others. See auto-escaping
tutorial here:
(Also the binary:

Anyone has any insights?

BTW, here's the version history so far:

The other major feature there is the template_configurers setting:

And yet another major feature will be the more flexible number and
maybe date/time formatting, with pluggable formatters (no more
DecimalFormat restrictions), but that was barely started as of yet.

Best regards,
 Daniel Dekany

FreeMarker-devel mailing list
[hidden email]