MO
- Refers to the interface's own type, which is useful in interfaces that extend
TemplateMarkupOutputModel
(Java Generics trick).public interface TemplateMarkupOutputModel<MO extends TemplateMarkupOutputModel<MO>> extends TemplateModel
OutputFormat
subclass pair (like TemplateHTMLOutputModel
has HTMLOutputFormat
). This type is
related to the Configuration.setOutputFormat(OutputFormat)
and
Configuration.setAutoEscapingPolicy(int)
mechanism; see more there. Values of this type are exempt from
automatic escaping with that mechanism.
Note that TemplateMarkupOutputModel
-s are by design not handled like TemplateScalarModel
-s, and so
the implementations of this interface usually shouldn't implement TemplateScalarModel
. (Because, operations
applicable on plain strings, like converting to upper case, substringing, etc., can corrupt markup.) The template
author should make conscious decision of passing in the markup as String by using ?markup_string
.
NOTHING
Modifier and Type | Method and Description |
---|---|
MarkupOutputFormat<MO> |
getOutputFormat() |
MarkupOutputFormat<MO> getOutputFormat()