public class SpincastPebbleTemplatingEngineConfigDefault extends Object implements SpincastPebbleTemplatingEngineConfig
| Constructor and Description |
|---|
SpincastPebbleTemplatingEngineConfigDefault(SpincastConfig spincastConfig) |
| Modifier and Type | Method and Description |
|---|---|
com.mitchellbosecke.pebble.extension.Extension |
getExtension()
Pebble extension to register: allows you to add custom
filters, functions, etc.
|
protected SpincastConfig |
getSpincastConfig() |
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?
|
@Inject public SpincastPebbleTemplatingEngineConfigDefault(SpincastConfig spincastConfig)
protected SpincastConfig getSpincastConfig()
public com.mitchellbosecke.pebble.extension.Extension getExtension()
SpincastPebbleTemplatingEngineConfiggetExtension in interface SpincastPebbleTemplatingEngineConfigpublic int getTemplateCacheItemNbr()
SpincastPebbleTemplatingEngineConfiggetTemplateCacheItemNbr in interface SpincastPebbleTemplatingEngineConfig<= 0,
thi cache will be disabled.public int getTagCacheTypeItemNbr()
SpincastPebbleTemplatingEngineConfiggetTagCacheTypeItemNbr in interface SpincastPebbleTemplatingEngineConfig<= 0,
thi cache will be disabled.public boolean isStrictVariablesEnabled()
SpincastPebbleTemplatingEngineConfigFrom 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."
isStrictVariablesEnabled in interface SpincastPebbleTemplatingEngineConfigpublic String getValidationMessagesTemplatePath()
SpincastPebbleTemplatingEngineConfiggetValidationMessagesTemplatePath in interface SpincastPebbleTemplatingEngineConfigpublic String getValidationGroupMessagesTemplatePath()
SpincastPebbleTemplatingEngineConfiggetValidationGroupMessagesTemplatePath in interface SpincastPebbleTemplatingEngineConfigCopyright © 2017. All rights reserved.