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 Details

  • Constructor Details

    • RockerViewsRendererConfigurationProperties

      public RockerViewsRendererConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Whether Rocker views are enabled. Default value (true).
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
      Returns:
      boolean flag indicating whether RockerViewsRenderer is enabled.
    • getDefaultExtension

      public String getDefaultExtension()
      The default extension to use for Rocker templates. Default value ("rocker.html").
      Specified by:
      getDefaultExtension in interface RockerViewsRendererConfiguration
      Returns:
      Default extension for templates. By default "rocker.html".
    • isHotReloading

      public boolean isHotReloading()
      Whether hot reloading is enabled. Default value (false).
      Specified by:
      isHotReloading in interface RockerViewsRendererConfiguration
      Returns:
      boolean flag indicating whether hot reloading is enabled.
    • isRelaxed

      public boolean isRelaxed()
      Whether relaxed binding is enabled for dynamic templates. Default value (false).
      Specified by:
      isRelaxed in interface RockerViewsRendererConfiguration
      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

      public void setDefaultExtension(String defaultExtension)
      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 on com.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