
public.javadoc.org.spincast.plugins.pebble.SpincastPebbleTemplatingEngineConfig.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastPebbleTemplatingEngineConfig (org.spincast:spincast-framework 1.7.1 API)
org.spincast.plugins.pebble
Interface SpincastPebbleTemplatingEngineConfig
-
- All Known Implementing Classes:
- SpincastPebbleTemplatingEngineConfigDefault
public interface SpincastPebbleTemplatingEngineConfig
Configurations for the Pebble templating engine plugin.
We use "@ImplementedBy" to specify the default configurations
to use if none is specified in a Guice module.
-
-
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method and Description
com.mitchellbosecke.pebble.extension.Extension
getExtension()
Pebble extension to register: allows you to add custom
filters, functions, etc.
int
getTagCacheTypeItemNbr()
The number of "cache" tag item to keep in cache.
int
getTemplateCacheItemNbr()
The number of template item to keep in cache.
String
getValidationGroupMessagesTemplatePath()
The path to the template to use to display
the validation messages of a Form's field group.
String
getValidationMessagesTemplatePath()
The path to the template to use to display
the validation messages of a Form' field.
boolean
isStrictVariablesEnabled()
Is the strict variable policy on?
-
-
Method Detail
-
getExtension
com.mitchellbosecke.pebble.extension.Extension getExtension()
Pebble extension to register: allows you to add custom
filters, functions, etc.
-
getTemplateCacheItemNbr
int getTemplateCacheItemNbr()
The number of template item to keep in cache.
- Returns:
- the max number of items to cache. If
<= 0
,
thi cache will be disabled.
-
getTagCacheTypeItemNbr
int getTagCacheTypeItemNbr()
The number of "cache" tag item to keep in cache.
more info
- Returns:
- the max number of items to cache. If
<= 0
,
this cache will be disabled.
-
isStrictVariablesEnabled
boolean isStrictVariablesEnabled()
Is the strict variable policy on?
From the doc : "If set to true, Pebble will throw an exception
if you try to access a variable or attribute that does not exist
(or an attribute of a null variable). If set to false,
your template will treat non-existing variables/attributes
as null without ever skipping a beat."
-
getValidationMessagesTemplatePath
String getValidationMessagesTemplatePath()
The path to the template to use to display
the validation messages of a Form' field.
-
getValidationGroupMessagesTemplatePath
String getValidationGroupMessagesTemplatePath()
The path to the template to use to display
the validation messages of a Form's field group.
Copyright © 2019. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy