Details
-
Improvement
-
Status: Closed
-
High
-
Resolution: Fixed
-
3.0.1, 3.2.1, 4.0.0
-
None
Description
This new version of freemarker has the new autoesc macro, which can make the ?html builtin for strings obsolete in some cases.
For example, you can write it like the following:
<#autoesc> ${bean.title} ... ${bean.name} </#autoesc>
instead of
${bean.title?html} ... ${bean.name?html}
Upgrading to 2.3.24 would make the markup much better readable, and we can get rid of the use of it in the documentation and all the templates in Essentials for example.
The previous version also had a nice feature:
A nice new feature is available in 2.3.23, the <#sep> tag. Instead of
<#list document.categories as category> ${category}<#if category_has_next>,</#if> </#list>
you can now write
<#list document.categories as category> ${category}<#sep>, </#list>
Attachments
Issue Links
- includes
-
CMS-10094 Upgrade freemarker version to 2.3.24 in hippo-cms-project
- Closed
- is awaited by
-
ESSENTIALS-973 Remove all usages of the ?html built in
- Closed
- is backported by
-
HSTTWO-3771 [backport 10.2] Upgrade to Freemarker version 2.3.24
- Closed