Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-3422

Upgrade to Freemarker version 2.3.24

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • High
    • Resolution: Fixed
    • 3.0.1, 3.2.1, 4.0.0
    • 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>
      

      See http://freemarker.org/docs/ref_directive_list.html

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bleunis Bert Leunis (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: