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 Details

  • Constructor Details

    • HandlebarsViewsRendererConfigurationProperties

      public HandlebarsViewsRendererConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      enabled getter.
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
      Returns:
      boolean flag indicating whether HandlebarsViewsRenderer is enabled.
    • getDefaultExtension

      public String getDefaultExtension()
      Specified by:
      getDefaultExtension in interface HandlebarsViewsRendererConfiguration
      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

      public void setDefaultExtension(String defaultExtension)
      The default extension. Default value ("hbs").
      Parameters:
      defaultExtension - The extension