@ConfigurationProperties(value="micronaut.views.pebble") public class PebbleConfigurationProperties extends java.lang.Object implements PebbleConfiguration
ConfigurationProperties
implementation of PebbleConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ALLOW_OVERRIDE_CORE_OPERATORS |
static boolean |
DEFAULT_AUTO_ESCAPING |
static boolean |
DEFAULT_CACHE_ACTIVE |
static boolean |
DEFAULT_ENABLED |
static java.lang.String |
DEFAULT_ESCAPING_STRATEGY |
static java.lang.String |
DEFAULT_EXTENSION |
static boolean |
DEFAULT_GREEDY_MATCH_METHOD |
static boolean |
DEFAULT_LITERAL_DECIMALS_AS_INTEGERS |
static boolean |
DEFAULT_LITERAL_NUMBERS_AS_BIG_DECIMALS |
static boolean |
DEFAULT_NEW_LINE_TRIMMING |
static boolean |
DEFAULT_STRICT_VARIABLES |
static java.lang.String |
ENABLED |
static java.lang.String |
PREFIX |
Constructor and Description |
---|
PebbleConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultEscapingStrategy() |
java.lang.String |
getDefaultExtension() |
boolean |
isAllowOverrideCoreOperators() |
boolean |
isAutoEscaping() |
boolean |
isCacheActive() |
boolean |
isEnabled() |
boolean |
isGreedyMatchMethod() |
boolean |
isLiteralDecimalsAsIntegers() |
boolean |
isLiteralNumbersAsBigDecimals() |
boolean |
isNewLineTrimming() |
boolean |
isStrictVariables() |
void |
setAllowOverrideCoreOperators(boolean allowOverrideCoreOperators)
Sets whether or not core operators overrides should be allowed.
|
void |
setAutoEscaping(boolean autoEscaping)
Sets whether or not escaping should be performed automatically.
|
void |
setCacheActive(boolean cacheActive)
Enable/disable all caches, i.e.
|
void |
setDefaultEscapingStrategy(java.lang.String defaultEscapingStrategy)
Sets the default escaping strategy of the built-in escaper extension.
|
void |
setDefaultExtension(java.lang.String defaultExtension)
The default extension.
|
void |
setEnabled(boolean enabled)
Sets whether the component is enabled.
|
void |
setGreedyMatchMethod(boolean greedyMatchMethod)
Enable/disable greedy matching mode for finding java method.
|
void |
setLiteralDecimalsAsIntegers(boolean literalDecimalsAsIntegers)
Enable/disable treat literal decimal as Integer.
|
void |
setLiteralNumbersAsBigDecimals(boolean literalNumbersAsBigDecimals)
Enable/disable treat literal numbers as BigDecimals.
|
void |
setNewLineTrimming(boolean newLineTrimming)
Changes the newLineTrimming setting of the PebbleEngine.
|
void |
setStrictVariables(boolean strictVariables)
Changes the strictVariables setting of the PebbleEngine.
|
public static final java.lang.String PREFIX
public static final java.lang.String ENABLED
public static final boolean DEFAULT_ENABLED
public static final java.lang.String DEFAULT_EXTENSION
public static final boolean DEFAULT_CACHE_ACTIVE
public static final boolean DEFAULT_NEW_LINE_TRIMMING
public static final boolean DEFAULT_AUTO_ESCAPING
public static final java.lang.String DEFAULT_ESCAPING_STRATEGY
public static final boolean DEFAULT_STRICT_VARIABLES
public static final boolean DEFAULT_GREEDY_MATCH_METHOD
public static final boolean DEFAULT_ALLOW_OVERRIDE_CORE_OPERATORS
public static final boolean DEFAULT_LITERAL_DECIMALS_AS_INTEGERS
public static final boolean DEFAULT_LITERAL_NUMBERS_AS_BIG_DECIMALS
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
enabled
- Whether or not component is enabledpublic java.lang.String getDefaultExtension()
getDefaultExtension
in interface PebbleConfiguration
defaultExtension
propertypublic void setDefaultExtension(java.lang.String defaultExtension)
defaultExtension
- The extensionpublic boolean isCacheActive()
isCacheActive
in interface PebbleConfiguration
cacheActive
propertypublic void setCacheActive(boolean cacheActive)
cacheActive
- toggle to enable/disable all cachespublic boolean isNewLineTrimming()
isNewLineTrimming
in interface PebbleConfiguration
newLineTrimming
propertypublic void setNewLineTrimming(boolean newLineTrimming)
newLineTrimming
- Whether or not the newline should be trimmed.public boolean isAutoEscaping()
isAutoEscaping
in interface PebbleConfiguration
autoEscaping
propertypublic void setAutoEscaping(boolean autoEscaping)
autoEscaping
- The auto escaping settingpublic java.lang.String getDefaultEscapingStrategy()
getDefaultEscapingStrategy
in interface PebbleConfiguration
defaultEscapingStrategy
propertypublic void setDefaultEscapingStrategy(java.lang.String defaultEscapingStrategy)
defaultEscapingStrategy
- The name of the default escaping strategypublic boolean isStrictVariables()
isStrictVariables
in interface PebbleConfiguration
strictVariables
propertypublic void setStrictVariables(boolean strictVariables)
strictVariables
- Whether or not strict variables is usedpublic boolean isGreedyMatchMethod()
isGreedyMatchMethod
in interface PebbleConfiguration
greedyMatchMethod
propertypublic void setGreedyMatchMethod(boolean greedyMatchMethod)
greedyMatchMethod
- toggle to enable/disable greedy match methodcom.mitchellbosecke.pebble.utils.TypeUtils#compatibleCast(Object, Class)
public boolean isAllowOverrideCoreOperators()
isAllowOverrideCoreOperators
in interface PebbleConfiguration
isAllowOverrideCoreOperators
propertypublic void setAllowOverrideCoreOperators(boolean allowOverrideCoreOperators)
allowOverrideCoreOperators
- Whether or not core operators overrides should be allowed.public boolean isLiteralDecimalsAsIntegers()
isLiteralDecimalsAsIntegers
in interface PebbleConfiguration
literalDecimalsAsInteger
propertypublic void setLiteralDecimalsAsIntegers(boolean literalDecimalsAsIntegers)
literalDecimalsAsIntegers
- toggle to enable/disable literal decimal treated as
integerpublic boolean isLiteralNumbersAsBigDecimals()
isLiteralNumbersAsBigDecimals
in interface PebbleConfiguration
literalNumbersAsBigDecimals
propertypublic void setLiteralNumbersAsBigDecimals(boolean literalNumbersAsBigDecimals)
literalNumbersAsBigDecimals
- toggle to enable/disable literal numbers treated as
BigDecimals