Package | Description |
---|---|
freemarker.core |
The seldom used or advanced parts of the fundamental FreeMarker API, compared to
freemarker.template . |
freemarker.ext.beans |
The default object wrapper of FreeMarker uses
this to expose Java Beans and POJO-s to templates.
|
freemarker.template |
The fundamental, most commonly used API-s of FreeMarker;
start with
Configuration (see also the
Getting Started in the Manual.) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
TemplateDateFormat.format(TemplateDateModel dateModel)
Formats the model to markup instead of to plain text if the result markup will be more than just plain text
escaped, otherwise falls back to formatting to plain text.
|
abstract java.lang.String |
TemplateDateFormat.formatToPlainText(TemplateDateModel dateModel) |
static java.util.Date |
TemplateFormatUtil.getNonNullDate(TemplateDateModel dateModel)
Utility method to extract the
Date from an TemplateDateModel , and throw
TemplateModelException with a standard error message if that's null . |
Modifier and Type | Class and Description |
---|---|
class |
DateModel
Wraps arbitrary subclass of
Date into a reflective model. |
Modifier and Type | Class and Description |
---|---|
class |
SimpleDate
A simple implementation of the TemplateDateModel
interface.
|