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
mechanism. Values of this kind are exempt from OutputFormat
-based automatic escaping.
Each implementation of this type has a corresponding OutputFormat
subclass, whose singleton instance is
returned by getOutputFormat()
. See more about how markup output values work at OutputFormat
.
Note that TemplateMarkupOutputModel
-s are by design not treated 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.) If the template
author wants to pass in the "source" of the markup as string somewhere, he should use ?markup_string
.
NOTHING
Modifier and Type | Method and Description |
---|---|
MarkupOutputFormat<MO> |
getOutputFormat()
Returns the singleton
OutputFormat object that implements the operations for the "markup output" value. |
MarkupOutputFormat<MO> getOutputFormat()
OutputFormat
object that implements the operations for the "markup output" value.