FreshMarker 3.1.0 Released

I’m excited to announce the release of FreshMarker 3.1.0! This minor version brings some interesting new features for the template engine.

Key New Features

Parameterless public methods in record hashes

Previously, only record properties could be queried. Now, parameterless public methods that were semantically equivalent can also be queried.

Method reference operator

Add a method reference operator :: for calling public methods on model-wrapped beans and records.

Additional Built-Ins

  • String built-ins remove_beginning and remove_ending for literal prefix and suffix removal, including typed compiler support
  • String built-ins ensure_starts_with and ensure_ends_with with literal and regular-expression variants, including typed compiler support

As always, the latest version can be downloaded from Maven Central.

<dependency>
    <groupId>org.freshmarker</groupId>
    <artifactId>freshmarker</artifactId>
    <version>3.1.0</version>
</dependency>

Leave a Comment