Uses of Class freemarker.template.Template

Uses in package freemarker.template

Methods with return type freemarker.template.Template

Template
Template.getPlainTextTemplate(String name, String content, Configuration config)
Returns a trivial template, one that is just a single block of plain text, no dynamic content.
Template
Equivalent to getTemplate(name, thisCfg.getLocale(), thisCfg.getEncoding(thisCfg.getLocale()), true).
Template
Configuration.getTemplate(String name, Locale locale)
Equivalent to getTemplate(name, locale, thisCfg.getEncoding(locale), true).
Template
Configuration.getTemplate(String name, Locale locale, String encoding)
Equivalent to getTemplate(name, locale, encoding, true).
Template
Configuration.getTemplate(String name, Locale locale, 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(String name, String encoding)
Equivalent to getTemplate(name, thisCfg.getLocale(), encoding, true).

Uses in package freemarker.ext.servlet

Methods with parameter type freemarker.template.Template

void
FreemarkerServlet.postTemplateProcess(HttpServletRequest request, HttpServletResponse response, Template template, TemplateModel data)
Called after the execution returns from template.process().
boolean
FreemarkerServlet.preTemplateProcess(HttpServletRequest request, HttpServletResponse response, Template template, TemplateModel data)
Called before the execution is passed to template.process().

Uses in package freemarker.cache

Methods with return type freemarker.template.Template

Template
TemplateCache.getTemplate(String name, Locale locale, String encoding, boolean parse)
Loads a template with the given name, in the specified locale and using the specified character encoding.

Uses in package freemarker.core

Constructors with parameter type freemarker.template.Template

Environment.Environment(Template template, TemplateHashModel rootDataModel, Writer out)

Methods with parameter type freemarker.template.Template

Object
Environment.Namespace
Environment.importLib(Template loadedTemplate, 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(Object value, Template t)
Sets the value of a template-scope attribute in the context of the given template.
void

Methods with return type freemarker.template.Template

Template
Retrieves the currently processed template.
Template
Template
Template
Gets a template for importing; used with importLib(Template importedTemplate, String namespace).
Template
Environment.getTemplateForInclusion(String name, String encoding, boolean parse)
Gets a template for inclusion; used with include(Template includedTemplate).