Package org.spincast.plugins.pebble
Class SpincastPebbleTemplatingEngineConfigDefault
java.lang.Object
org.spincast.plugins.pebble.SpincastPebbleTemplatingEngineConfigDefault
- All Implemented Interfaces:
SpincastPebbleTemplatingEngineConfig
public class SpincastPebbleTemplatingEngineConfigDefault
extends Object
implements SpincastPebbleTemplatingEngineConfig
Default implementation for the configurations of
the Pebble templating engine plugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mitchellbosecke.pebble.extension.ExtensionPebble extension to register: allows you to add custom filters, functions, etc.protected SpincastConfigintThe number of "cache" tag item to keep in cache.intThe number of template item to keep in cache.The path to the template to use to display the validation messages of a Form's field group.The path to the template to use to display the validation messages of a Form' field.booleanIs the strict variable policy on?
-
Constructor Details
-
SpincastPebbleTemplatingEngineConfigDefault
-
-
Method Details
-
getSpincastConfig
-
getExtension
public com.mitchellbosecke.pebble.extension.Extension getExtension()Description copied from interface:SpincastPebbleTemplatingEngineConfigPebble extension to register: allows you to add custom filters, functions, etc.- Specified by:
getExtensionin interfaceSpincastPebbleTemplatingEngineConfig
-
getTemplateCacheItemNbr
public int getTemplateCacheItemNbr()Description copied from interface:SpincastPebbleTemplatingEngineConfigThe number of template item to keep in cache.- Specified by:
getTemplateCacheItemNbrin interfaceSpincastPebbleTemplatingEngineConfig- Returns:
- the max number of items to cache. If
<= 0, thi cache will be disabled.
-
getTagCacheTypeItemNbr
public int getTagCacheTypeItemNbr()Description copied from interface:SpincastPebbleTemplatingEngineConfigThe number of "cache" tag item to keep in cache. more info- Specified by:
getTagCacheTypeItemNbrin interfaceSpincastPebbleTemplatingEngineConfig- Returns:
- the max number of items to cache. If
<= 0, this cache will be disabled.
-
isStrictVariablesEnabled
public boolean isStrictVariablesEnabled()Description copied from interface:SpincastPebbleTemplatingEngineConfigIs 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."
- Specified by:
isStrictVariablesEnabledin interfaceSpincastPebbleTemplatingEngineConfig
-
getValidationMessagesTemplatePath
Description copied from interface:SpincastPebbleTemplatingEngineConfigThe path to the template to use to display the validation messages of a Form' field.- Specified by:
getValidationMessagesTemplatePathin interfaceSpincastPebbleTemplatingEngineConfig
-
getValidationGroupMessagesTemplatePath
Description copied from interface:SpincastPebbleTemplatingEngineConfigThe path to the template to use to display the validation messages of a Form's field group.- Specified by:
getValidationGroupMessagesTemplatePathin interfaceSpincastPebbleTemplatingEngineConfig
-