@ConfigurationProperties(value="micronaut.views.soy") public class SoyViewsRendererConfigurationProperties extends java.lang.Object implements SoyViewsRendererConfiguration
ConfigurationProperties implementation for SoyTofuViewsRenderer.
Configured properties support a SoyFileSet, which is rendered via a from-source renderer. Template sources
are provided via DI, using a SoyFileSetProvider.| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
DEFAULT_ENGINE
The default Soy rendering engine.
|
static boolean |
DEFAULT_RENAMING
Whether to mount renaming maps.
|
static java.lang.String |
PREFIX |
| Constructor and Description |
|---|
SoyViewsRendererConfigurationProperties(ViewsConfiguration viewsConfiguration,
SoyFileSetProvider fileSetProvider)
Default constructor for Soy views renderer config properties.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.template.soy.jbcsrc.api.SoySauce |
getCompiledTemplates() |
com.google.template.soy.SoyFileSet |
getFileSet() |
boolean |
isEnabled() |
boolean |
isRenamingEnabled()
Specifies whether renaming is enabled.
|
void |
setEnabled(boolean enabled)
Whether Soy-backed views are enabled.
|
void |
setRenamingEnabled(boolean renaming)
Turns renaming on or off.
|
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public static final java.lang.String DEFAULT_ENGINE
public static final boolean DEFAULT_RENAMING
public SoyViewsRendererConfigurationProperties(ViewsConfiguration viewsConfiguration, SoyFileSetProvider fileSetProvider)
viewsConfiguration - The views configurationfileSetProvider - Soy file set provider (template sources)public boolean isEnabled()
isEnabled in interface io.micronaut.core.util.Toggleablepublic void setEnabled(boolean enabled)
enabled - True if they are.public boolean isRenamingEnabled()
isRenamingEnabled in interface SoyViewsRendererConfigurationpublic void setRenamingEnabled(boolean renaming)
setRenamingEnabled in interface SoyViewsRendererConfigurationrenaming - Renaming status.@Nullable public com.google.template.soy.SoyFileSet getFileSet()
getFileSet in interface SoyViewsRendererConfiguration@Nullable public com.google.template.soy.jbcsrc.api.SoySauce getCompiledTemplates()
getCompiledTemplates in interface SoyViewsRendererConfiguration