The latest version of FreshMarker, the Java 21 template engine, is now available. Version 2.2.0 introduces several improvements, new features.
Improvements
- New Operators
- String Repeat Operator to repeat strings in expressions
- List Difference Operator to remove multiple elements from a list
- Dark-Mode for the manual
- List Directive Enhancements
- Right-Unlimited Ranges are now usable
- Faster The processing of list variables has been significantly accelerated
Experimental
- Hook a model structure to a template with the
Template#hook
method - Partial Template Reduction simplifies now the expressions in interpolations
Bugfix
- fix optimization bug in not short circuit or operator