public final class UndefinedOutputFormat extends OutputFormat
Configuration.setTemplateConfigurations(freemarker.cache.TemplateConfigurationFactory)). This format doesn't support auto-escaping (
Configuration.setAutoEscapingPolicy(int)). It will print
TemplateMarkupOutputModel-s as is (doesn't try to convert them).
|Modifier and Type||Method and Description|
Returns the MIME type of the output format.
The short name used to refer to this format (like in the
Tells if this output format allows inserting
public static final UndefinedOutputFormat INSTANCE
public boolean isOutputFormatMixingAllowed()
TemplateMarkupOutputModel-s of another output formats into it. If
true, the foreign
TemplateMarkupOutputModelwill be inserted into the output as is (like if the surrounding output format was the same). This is usually a bad idea to allow, as such an event could indicate application bugs. If this method returns
false(recommended), then FreeMarker will try to assimilate the inserted value by converting its format to this format, which will currently (2.3.24) cause exception, unless the inserted value is made by escaping plain text and the target format is non-escaping, in which case format conversion is trivially possible. (It's not impossible that conversions will be extended beyond this, if there will be demand for that.)
true value is used by
public String getName()