Discussion:
[Freemarker-devel] Auto-escaping feature in FreeMarker 2.3.24 (and some others)
Daniel Dekany
2015-08-25 19:46:37 UTC
Permalink
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:

http://freemarker.org/builds/2.3.24-nightly/documentation/_html/dgui_misc_autoescaping.html
(Also the binary: http://freemarker.org/builds/2.3.24-nightly/freemarker.jar)

Anyone has any insights?

BTW, here's the version history so far:
http://freemarker.org/builds/2.3.24-nightly/documentation/_html/versions_2_3_24.html

The other major feature there is the template_configurers setting:
http://freemarker.org/builds/2.3.24-nightly/documentation/_html/pgui_config_templateconfigurers.html

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


------------------------------------------------------------------------------
Loading...