Package | Description |
---|---|
freemarker.cache |
Contains classes and interfaces that deal with template loading and caching.
|
freemarker.ext.servlet |
Provides a generic purpose servlet that generates dynamic response using
FreeMarker.
|
freemarker.template |
This package contains the core API's that most users will use.
|
Modifier and Type | Interface and Description |
---|---|
interface |
StatefulTemplateLoader
Interface that can be implemented by template loaders that maintain some
sort of internal state (i.e.
|
Modifier and Type | Class and Description |
---|---|
class |
ClassTemplateLoader
A
TemplateLoader that uses streams reachable through
Class.getResourceAsStream(String) as its source of templates. |
class |
FileTemplateLoader
A
TemplateLoader that uses files in a specified directory as the
source of templates. |
class |
MultiTemplateLoader
A
TemplateLoader that uses a set of other loaders to load the templates. |
class |
StringTemplateLoader
A
TemplateLoader that uses a Map with Strings as its source of
templates. |
class |
URLTemplateLoader
This is an abstract template loader that can load templates whose
location can be described by an URL.
|
class |
WebappTemplateLoader
A
TemplateLoader that uses streams reachable through
ServletContext.getResource(String) as its source of templates. |
Modifier and Type | Method and Description |
---|---|
TemplateLoader |
TemplateCache.getTemplateLoader() |
Constructor and Description |
---|
MultiTemplateLoader(TemplateLoader[] loaders)
Creates a new multi template Loader that will use the specified loaders.
|
TemplateCache(TemplateLoader loader)
Creates a new template cache with a custom template loader that is used
to load the templates.
|
TemplateCache(TemplateLoader loader,
CacheStorage storage)
Creates a new template cache with a custom template loader that is used
to load the templates.
|
Modifier and Type | Method and Description |
---|---|
protected TemplateLoader |
FreemarkerServlet.createTemplateLoader(java.lang.String templatePath)
Create the template loader.
|
Modifier and Type | Method and Description |
---|---|
TemplateLoader |
Configuration.getTemplateLoader() |
Modifier and Type | Method and Description |
---|---|
void |
Configuration.setTemplateLoader(TemplateLoader loader)
Sets a template loader that is used to look up and load templates.
|