List of deprecated directives - FreeMarker Manual

- Home
- Manual
- Java API

- Contribute
- Report a Bug
- Download

Manual
Previous Next

# List of deprecated directives

The following directives are deprecated, but still working:

- `call`: use user-defined directive call instead

- `comment`: This is the old format of `<#--...-->`. Anything between the `<#comment>` and `</#comment>` will be ignored.

- `foreach`: it is a synonym of the `list` directive with slightly different parameter syntax. The syntax is `<#foreach item in sequence>` that is equivalent with `<#list sequence as item>`.

- `transform`: use user-defined directive call instead

The following directives are not working anymore:

- Legacy `function`: Originally `function` was used to define macros, and was deprecated in favor of the `macro` directive. As of FreeMarker 2.3, this directive is reintroduced with different meaning: it is used to define methods.

Previous Next