2.1.1 - Apache FreeMarker Manual

Unsupported web browser - Use a modern browser to view this website!

- Home
- Manual
- Java API

- Contribute
- Report a Bug
- Download

Manual
Previous Next

# 2.1.1

Date of release: 2002-11-04

## Changes in FTL (FreeMarker Template Language)

- Multi-type variables that are both string and number or string and date are now output using their number or date value instead of the string value when used in the `${...}` interpolation. This practically makes the string part of a string/number or a string/date variables useless.

- Bugfix: operator "or" (`||`) worked wrongly when its left operand was a composite expression (e.g., the second `||` in `false || true || false`; this was evaluated to `false`, but it should be `true`)

- Bugfix: Less-than sign inside comments confused the FTL parser (e.g. `<#-- blah < blah -->`); it commented out everything after the problematic comment.

- Bugfix: Comparing two numerical constants (e.g. `3 == 3`) caused internal error in the FTL parser, and aborted template processing with error.

- Experimental date/time type support was removed, since it seems that this initial implementation was misguided. FreeMarker 2.2 will certainly support data/time.

## Changes on the Java side

- Bugfix: `Number`s wrapped with `BEANS_WRAPPER` was displayed with the `toString()` method of wrapped object. Now they are rendered according to the `number_format` setting, because multi-type variables that are both string and number are now output using their number value instead of the string value.

- Experimental date/time type support was removed, since it seems that this initial implementation was misguided. FreeMarker 2.2 will certainly support data/time.

Previous Next