Package io.micronaut.views.handlebars
Class HandlebarsViewsRendererConfigurationProperties
java.lang.Object
io.micronaut.views.handlebars.HandlebarsViewsRendererConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,HandlebarsViewsRendererConfiguration
@ConfigurationProperties("micronaut.views.handlebars")
public class HandlebarsViewsRendererConfigurationProperties
extends Object
implements HandlebarsViewsRendererConfiguration
ConfigurationProperties
implementation of HandlebarsViewsRendererConfiguration
.- Since:
- 1.0
- Author:
- Sergio del Amo
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe default file extension for templates.boolean
Whether handlebars view rendering is enabled.void
setDefaultExtension
(String defaultExtension) The default extension.void
setEnabled
(boolean enabled) Whether handlebars view rendering is enabled.
-
Field Details
-
PREFIX
The prefix to use.- See Also:
-
DEFAULT_EXTENSION
The default extension.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
HandlebarsViewsRendererConfigurationProperties
public HandlebarsViewsRendererConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether handlebars view rendering is enabled. Default value (true).- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- boolean flag indicating whether
HandlebarsViewsRenderer
is enabled.
-
getDefaultExtension
The default file extension for templates. Default value ("hbs").- Specified by:
getDefaultExtension
in interfaceHandlebarsViewsRendererConfiguration
- Returns:
- Default extension for templates. By default "hbs".
-
setEnabled
public void setEnabled(boolean enabled) Whether handlebars view rendering is enabled. Default value (true).- Parameters:
enabled
- True if is enabled
-
setDefaultExtension
The default extension. Default value ("hbs").- Parameters:
defaultExtension
- The extension
-