Package io.micronaut.views.rocker
Class RockerViewsRendererConfigurationProperties
java.lang.Object
io.micronaut.views.rocker.RockerViewsRendererConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,RockerViewsRendererConfiguration
@ConfigurationProperties("micronaut.views.rocker")
public class RockerViewsRendererConfigurationProperties
extends Object
implements RockerViewsRendererConfiguration
ConfigurationProperties
implementation of RockerViewsRendererConfiguration
.- Since:
- 1.3.2
- Author:
- Sam Adams
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Enabled getter.boolean
Hot reloading getter.boolean
Relaxed binding getter.void
setDefaultExtension
(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.
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_EXTENSION
The default extension.- See Also:
-
DEFAULT_HOT_RELOADING
public static final boolean DEFAULT_HOT_RELOADINGThe default hot reloading value.- See Also:
-
DEFAULT_RELAXED
public static final boolean DEFAULT_RELAXEDThe default relaxed value.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
RockerViewsRendererConfigurationProperties
public RockerViewsRendererConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Enabled getter.- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- boolean flag indicating whether
RockerViewsRenderer
is enabled.
-
getDefaultExtension
- Specified by:
getDefaultExtension
in interfaceRockerViewsRendererConfiguration
- Returns:
- Default extension for templates. By default "rocker.html".
-
isHotReloading
public boolean isHotReloading()Hot reloading getter.- Specified by:
isHotReloading
in interfaceRockerViewsRendererConfiguration
- Returns:
- boolean flag indicating whether hot reloading is enabled.
-
isRelaxed
public boolean isRelaxed()Relaxed binding getter.- Specified by:
isRelaxed
in interfaceRockerViewsRendererConfiguration
- Returns:
- boolean flag indicating whether relaxed binding is enabled for dynamic templates.
-
setEnabled
public void setEnabled(boolean enabled) Whether Rocker views are enabled. Default value (true).- Parameters:
enabled
- True if they are
-
setDefaultExtension
Sets the default extension to use for Rocker templates. Default value ("rocker.html").- Parameters:
defaultExtension
- The default extension
-
setHotReloading
public void setHotReloading(boolean hotReloading) Whether hot reloading is enabled. Default value (false). Hot reloading requires an additional dependency oncom.fizzed:rocker-compiler:1.2.3:provided
.- Parameters:
hotReloading
- True if it is
-
setRelaxed
public void setRelaxed(boolean relaxed) Whether relaxed binding is enabled for dynamic templates. Default value (false).- Parameters:
relaxed
- True if it is
-