@ConfigurationProperties(value="micronaut.views.handlebars") public class HandlebarsViewsRendererConfigurationProperties extends java.lang.Object implements HandlebarsViewsRendererConfiguration
ConfigurationProperties
implementation of HandlebarsViewsRendererConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
DEFAULT_EXTENSION
The default extension.
|
static java.lang.String |
PREFIX
The prefix to use.
|
Constructor and Description |
---|
HandlebarsViewsRendererConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultExtension() |
boolean |
isEnabled()
enabled getter.
|
void |
setDefaultExtension(java.lang.String defaultExtension)
The default extension.
|
void |
setEnabled(boolean enabled)
Whether handlebars view rendering is enabled.
|
public static final java.lang.String PREFIX
public static final java.lang.String DEFAULT_EXTENSION
public static final boolean DEFAULT_ENABLED
public HandlebarsViewsRendererConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
HandlebarsViewsRenderer
is enabled.public java.lang.String getDefaultExtension()
getDefaultExtension
in interface HandlebarsViewsRendererConfiguration
public void setEnabled(boolean enabled)
enabled
- True if is enabledpublic void setDefaultExtension(java.lang.String defaultExtension)
defaultExtension
- The extension