Auto-escaping feature in FreeMarker 2.3.24 (and some others)
Daniel Dekany <[email protected]> Tue, 25 Aug 2015 21:46:37 +0200
| Newsgroups | gmane.comp.web.freemarker.devel |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------------------------------------------------------------