Class MustacheSettings
- java.lang.Object
-
- com.github.mjeanroy.springmvc.view.mustache.MustacheSettings
-
public final class MustacheSettings extends Object
Set of default settings.
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
CACHE
Default cache settings defined onAbstractCachingViewResolver.setCache(boolean)
.static String
DEFAULT_LAYOUT
Default layout value onMustacheViewResolver.setDefaultLayout(String)
.static String
DEFAULT_LAYOUT_KEY
Default key that will be used to replace layout content with view to display.static String
LAYOUT_KEY
Default key that can be used to map view to partials in default layout.static String
LAYOUT_MAPPINGS
Default key that can be used to define layout mappings.static int
ORDER
Default view resolver order defined onUrlBasedViewResolver.setOrder(int)
.static String
PARTIALS_KEY
Key used to store partials mapping inModelAndView
object.static String
PREFIX
Default prefix prepended to view names.static String
SUFFIX
Default suffix appended to view names.static String
VIEW_NAMES
Default cache settings defined onAbstractCachingViewResolver.setCache(boolean)
.
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
Default prefix prepended to view names. This prefix will be used by view resolver and mustache template loader.- See Also:
- Constant Field Values
-
SUFFIX
public static final String SUFFIX
Default suffix appended to view names. This suffix will be used by view resolver and mustache template loader.- See Also:
- Constant Field Values
-
ORDER
public static final int ORDER
Default view resolver order defined onUrlBasedViewResolver.setOrder(int)
. This settings set the order in which thisMustacheViewResolver
will be evaluated.- See Also:
- Constant Field Values
-
CACHE
public static final boolean CACHE
Default cache settings defined onAbstractCachingViewResolver.setCache(boolean)
.- See Also:
- Constant Field Values
-
VIEW_NAMES
public static final String VIEW_NAMES
Default cache settings defined onAbstractCachingViewResolver.setCache(boolean)
. This settings set the view names (or name patterns) that can be handled byMustacheViewResolver
- See Also:
- Constant Field Values
-
DEFAULT_LAYOUT
public static final String DEFAULT_LAYOUT
Default layout value onMustacheViewResolver.setDefaultLayout(String)
. By default, this feature is disabled.- See Also:
- Constant Field Values
-
LAYOUT_KEY
public static final String LAYOUT_KEY
Default key that can be used to map view to partials in default layout. This property is set onMustacheViewResolver.setLayoutKey(String)
.- See Also:
- Constant Field Values
-
LAYOUT_MAPPINGS
public static final String LAYOUT_MAPPINGS
Default key that can be used to define layout mappings. This property is set onMustacheViewResolver.setLayoutMappings(java.util.Map)
(String)}.- See Also:
- Constant Field Values
-
PARTIALS_KEY
public static final String PARTIALS_KEY
Key used to store partials mapping inModelAndView
object. If mapping is defined, it will be automatically used during template compilation.- See Also:
- Constant Field Values
-
DEFAULT_LAYOUT_KEY
public static final String DEFAULT_LAYOUT_KEY
Default key that will be used to replace layout content with view to display.- See Also:
- Constant Field Values
-
-