Package | Description |
---|---|
freemarker.core |
The seldom used or advanced parts of the fundamental FreeMarker API, compared to
freemarker.template . |
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.String |
Environment.rootBasedToAbsoluteTemplateName(java.lang.String rootBasedName)
Converts a root based name (a name that's either relative to the root, or is absolute), which are typically used
by the API (such as for
Configuration.getTemplate(String) ), to an absolute name, which can be safely
passed to <#include path> and such, as it won't be misinterpreted to be relative to the directory of the
template. |
java.lang.String |
Environment.toFullTemplateName(java.lang.String baseName,
java.lang.String targetName)
Resolves a reference to a template (like the one used in
#include or #import ), assuming a base
name. |
Modifier and Type | Method and Description |
---|---|
Template |
Configuration.getTemplate(java.lang.String name)
Retrieves the template with the given name from the template cache, loading it into the cache first if it's
missing/staled.
|
Template |
Configuration.getTemplate(java.lang.String name,
java.util.Locale locale)
Shorthand for
getTemplate(name, locale, null, null, true, false) . |
Template |
Configuration.getTemplate(java.lang.String name,
java.util.Locale locale,
java.lang.Object customLookupCondition,
java.lang.String encoding,
boolean parseAsFTL,
boolean ignoreMissing)
Retrieves the template with the given name (and according the specified further parameters) from the template
cache, loading it into the cache first if it's missing/staled.
|
Template |
Configuration.getTemplate(java.lang.String name,
java.util.Locale locale,
java.lang.String encoding)
Shorthand for
getTemplate(name, locale, null, encoding, true, false) . |
Template |
Configuration.getTemplate(java.lang.String name,
java.util.Locale locale,
java.lang.String encoding,
boolean parseAsFTL)
Shorthand for
getTemplate(name, locale, null, encoding, parseAsFTL, false) . |
Template |
Configuration.getTemplate(java.lang.String name,
java.util.Locale locale,
java.lang.String encoding,
boolean parseAsFTL,
boolean ignoreMissing)
|
Template |
Configuration.getTemplate(java.lang.String name,
java.lang.String encoding)
Shorthand for
getTemplate(name, null, null, encoding, true, false) . |