Date of release: 2003-04-11
This version introduces important new features, such as the native FTL date/time type, and the auto-include and auto-import settings.
The date/time support is experimental, but we hope it will not substantially change. We would like to label it as final ASAP, so we urge everybody to send feedback on this topic to the mailing lists.
Changes on the FTL side
-
New scalar type: date. For more information read: Template Author's Guide/Values, Types/The types/Scalars, Template Author's Guide/Values, Types/The types/Scalars, interpolation, ?string built-in for dates
Changes on the Java side
-
New
TemplateModel
subinterface:TemplateDateModel
. For more information read Programmer's Guide/The Data Model/Scalars -
auto-include and auto-import: With these new configuration level settings, you can include and import commonly used templates (usually collection of macro definitions) at the top of all templates, without actually typing
<#include ...>
or<#import ...>
into the templates again and again. For more information please read the Java API documentation ofConfiguration
-
New template method:
createProcessingEnvironment
. This method makes it possible for you to do some special initialization on theEnvironment
before template processing, or to read the environment after template processing. For more information please read the Java API documentation. -
Changes to
freemarker.ext.beans
package:BeanModel
,MapModel
, andResourceModel
now implementTemplateHashModelEx
. -
Bugfix:
Configurable.setSettings(Properties)
didn't removed redundant spaces/tabs at the end of property values.