|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Template | |
---|---|
freemarker.cache | Contains classes and interfaces that deal with template loading and caching. |
freemarker.core | This package contains FreeMarker's core parsing/rendering functionality;
most casual users do not need to be aware of the classes in this package,
and can restrict their attention to the freemarker.template
package. |
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. |
Uses of Template in freemarker.cache |
---|
Methods in freemarker.cache that return Template | |
---|---|
Template |
TemplateCache.getTemplate(java.lang.String name,
java.util.Locale locale,
java.lang.String encoding,
boolean parse)
Loads a template with the given name, in the specified locale and using the specified character encoding. |
Uses of Template in freemarker.core |
---|
Methods in freemarker.core that return Template | |
---|---|
Template |
TemplateObject.getTemplate()
|
Template |
Environment.getTemplate()
Retrieves the currently processed template. |
Template |
Environment.Namespace.getTemplate()
|
Template |
Environment.getTemplateForImporting(java.lang.String name)
Gets a template for importing; used with Environment.importLib(Template importedTemplate, String namespace) . |
Template |
Environment.getTemplateForInclusion(java.lang.String name,
java.lang.String encoding,
boolean parse)
Gets a template for inclusion; used with Environment.include(Template includedTemplate) . |
Methods in freemarker.core with parameters of type Template | |
---|---|
java.lang.Object |
CustomAttribute.get(Template t)
|
Environment.Namespace |
Environment.importLib(Template loadedTemplate,
java.lang.String namespace)
Emulates import directive. |
void |
Environment.include(Template includedTemplate)
Processes a Template in the context of this Environment , including its
output in the Environment 's Writer. |
void |
CustomAttribute.set(java.lang.Object value,
Template t)
Sets the value of a template-scope attribute in the context of the given template. |
void |
FreeMarkerTree.setTemplate(Template template)
|
Constructors in freemarker.core with parameters of type Template | |
---|---|
Environment(Template template,
TemplateHashModel rootDataModel,
java.io.Writer out)
|
|
FMParser(Template template,
java.io.Reader reader,
boolean strictEscapeSyntax,
boolean stripWhitespace)
Constructs a new parser object. |
|
FMParser(Template template,
java.io.Reader reader,
boolean strictEscapeSyntax,
boolean stripWhitespace,
int tagSyntax)
|
|
FreeMarkerTree(Template template)
|
Uses of Template in freemarker.ext.servlet |
---|
Methods in freemarker.ext.servlet with parameters of type Template | |
---|---|
protected void |
FreemarkerServlet.postTemplateProcess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Template template,
TemplateModel data)
Called after the execution returns from template.process(). |
protected boolean |
FreemarkerServlet.preTemplateProcess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Template template,
TemplateModel data)
Called before the execution is passed to template.process(). |
Uses of Template in freemarker.template |
---|
Methods in freemarker.template that return Template | |
---|---|
static Template |
Template.getPlainTextTemplate(java.lang.String name,
java.lang.String content,
Configuration config)
Returns a trivial template, one that is just a single block of plain text, no dynamic content. |
Template |
Configuration.getTemplate(java.lang.String name)
Equivalent to getTemplate(name, thisCfg.getLocale(), thisCfg.getEncoding(thisCfg.getLocale()), true). |
Template |
Configuration.getTemplate(java.lang.String name,
java.util.Locale locale)
Equivalent to getTemplate(name, locale, thisCfg.getEncoding(locale), true). |
Template |
Configuration.getTemplate(java.lang.String name,
java.util.Locale locale,
java.lang.String encoding)
Equivalent to getTemplate(name, locale, encoding, true). |
Template |
Configuration.getTemplate(java.lang.String name,
java.util.Locale locale,
java.lang.String encoding,
boolean parse)
Retrieves a template specified by a name and locale, interpreted using the specified character encoding, either parsed or unparsed. |
Template |
Configuration.getTemplate(java.lang.String name,
java.lang.String encoding)
Equivalent to getTemplate(name, thisCfg.getLocale(), encoding, true). |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |