Uses of Package
freemarker.core
Packages that use freemarker.core
Package
Description
Template loading and caching.
The seldom used or advanced parts of the fundamental FreeMarker API, compared to
freemarker.template
.Servlet for legacy "Model 2" frameworks that allows using FreeMarker
templates instead of JSP as the MVC View
(see in the Manual).
The fundamental, most commonly used API-s of FreeMarker;
start with
Configuration
(see also the
Getting Started in the Manual.)Various classes used by core FreeMarker code but might be useful outside of it too.
-
Classes in freemarker.core used by freemarker.cacheClassDescriptionObject that represents the runtime environment during template processing.Used for customizing the configuration settings for individual
Template
-s (or rather groups of templates), relatively to the common setting values coming from theConfiguration
. -
Classes in freemarker.core used by freemarker.coreClassDescriptionUsed for implementing the arithmetic operations and number comparisons in the template language.This is the default arithmetic engine in FreeMarker.An arithmetic engine that conservatively widens the operation arguments to extent that they can hold the result of the operation.Represents two markup formats nested into each other.Common superclass for implementing
MarkupOutputFormat
-s that use aCommonTemplateMarkupOutputModel
subclass.Common superclass for implementingTemplateMarkupOutputModel
-s that belong to aCommonMarkupOutputFormat
subclass format.Represents the CSS output format (MIME type "text/css", name "CSS").The defaultTruncateBuiltinAlgorithm
implementation; seeConfigurable.setTruncateBuiltinAlgorithm(TruncateBuiltinAlgorithm)
.Gives information about the place where a directive is called from, also lets you attach a custom data object to that place.Object that represents the runtime environment during template processing.Represents the HTML output format (MIME type "text/html", name "HTML").Used when creatingTemplateDateFormat
-s andTemplateNumberFormat
-s to indicate that the parameters part of the format string (like some kind of pattern) is malformed.Used when creatingTemplateDateFormat
-s andTemplateNumberFormat
-s to indicate that the format string (like the value of thedateFormat
setting) is malformed.Represents the JavaScript output format (MIME type "application/javascript", name "JavaScript").Represents the JSON output format (MIME type "application/json", name "JSON").Superclass ofOutputFormat
-s that represent a "markup" format, which is any format where certain character sequences have special meaning and thus may need escaping.Represents an output format.Parsing-time exception in a template (as opposed to a runtime exception, aTemplateException
).Don't implement this interface yourself; use the existing implementation(s).Represents the plain text output format (MIME type "text/plain", name "plainText").Represents the Rich Text Format output format (MIME type "application/rtf", name "RTF").Used by built-ins and other template language features that get a class based on a string.Stores combined markup to be printed; used withCombinedMarkupOutputFormat
.Used for customizing the configuration settings for individualTemplate
-s (or rather groups of templates), relatively to the common setting values coming from theConfiguration
.Represents a date/time/dateTime format; used in templates for formatting and parsing with that format.Factory for a certain kind of date/time/dateTime formatting (TemplateDateFormat
).Stores HTML markup to be printed; used withHTMLOutputFormat
."markup output" template language data-type; stores markup (some kind of "rich text" / structured format, as opposed to plain text) that meant to be printed as template output.Represents a number format; used in templates for formatting and parsing with that format.Factory for a certain kind of number formatting (TemplateNumberFormat
).Stores RTF markup to be printed; used withRTFOutputFormat
.Superclass of all value format objects; objects that convert values to strings, or parse strings.Error while getting, creating or applyingTemplateValueFormat
-s (including its subclasses, likeTemplateNumberFormat
).Superclass of all format factories.Stores HTML markup to be printed; used withHTMLOutputFormat
.Stores XML markup to be printed; used withXMLOutputFormat
.Used for implementing the "truncate" family of built-ins.Represents the output format used when the template output format is undecided.The type of a value differs from what was expected.Thrown when aTemplateModel
can't be formatted because of the value/properties of it are outside of that theTemplateValueFormat
supports.Represents the XML output format (MIME type "application/xhtml+xml", name "XHTML"); this behaves identically toHTMLOutputFormat
, except that the name an the MIME Type differs.Represents the XML output format (MIME type "application/xml", name "XML"). -
Classes in freemarker.core used by freemarker.ext.servletClassDescriptionObject that represents the runtime environment during template processing.
-
Classes in freemarker.core used by freemarker.templateClassDescriptionObject that represents the runtime environment during template processing.Represents an output format.Parsing-time exception in a template (as opposed to a runtime exception, a
TemplateException
).Don't implement this interface yourself; use the existing implementation(s). -
Classes in freemarker.core used by freemarker.template.utilityClassDescriptionObject that represents the runtime environment during template processing.Parsing-time exception in a template (as opposed to a runtime exception, a
TemplateException
).