@ConfigurationProperties(value="micronaut.views.rocker") public class RockerViewsRendererConfigurationProperties extends java.lang.Object implements RockerViewsRendererConfiguration
ConfigurationProperties
implementation of RockerViewsRendererConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
DEFAULT_EXTENSION
The default extension.
|
static boolean |
DEFAULT_HOT_RELOADING
The default hot reloading value.
|
static boolean |
DEFAULT_RELAXED
The default relaxed value.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
RockerViewsRendererConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultExtension() |
boolean |
isEnabled()
Enabled getter.
|
boolean |
isHotReloading()
Hot reloading getter.
|
boolean |
isRelaxed()
Relaxed binding getter.
|
void |
setDefaultExtension(java.lang.String defaultExtension)
Sets the default extension to use for Rocker templates.
|
void |
setEnabled(boolean enabled)
Whether Rocker views are enabled.
|
void |
setHotReloading(boolean hotReloading)
Whether hot reloading is enabled.
|
void |
setRelaxed(boolean relaxed)
Whether relaxed binding is enabled for dynamic templates.
|
public static final java.lang.String PREFIX
public static final java.lang.String DEFAULT_EXTENSION
public static final boolean DEFAULT_HOT_RELOADING
public static final boolean DEFAULT_RELAXED
public static final boolean DEFAULT_ENABLED
public RockerViewsRendererConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
RockerViewsRenderer
is enabled.public java.lang.String getDefaultExtension()
getDefaultExtension
in interface RockerViewsRendererConfiguration
public boolean isHotReloading()
isHotReloading
in interface RockerViewsRendererConfiguration
public boolean isRelaxed()
isRelaxed
in interface RockerViewsRendererConfiguration
public void setEnabled(boolean enabled)
enabled
- True if they arepublic void setDefaultExtension(java.lang.String defaultExtension)
defaultExtension
- The default extensionpublic void setHotReloading(boolean hotReloading)
hotReloading
- True if it ispublic void setRelaxed(boolean relaxed)
relaxed
- True if it is