public class SpincastPebbleTemplatingEngineConfigDefault extends Object implements ISpincastPebbleTemplatingEngineConfig
| Constructor and Description |
|---|
SpincastPebbleTemplatingEngineConfigDefault(ISpincastConfig 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 ISpincastConfig |
getSpincastConfig() |
int |
getTagCacheTypeItemNbr()
The number of "cache" tag item to keep in cache.
|
int |
getTemplateCacheItemNbr()
The number of template item to keep in cache.
|
boolean |
isStrictVariablesEnabled()
Is the strict variable policy on?
|
@Inject public SpincastPebbleTemplatingEngineConfigDefault(ISpincastConfig spincastConfig)
protected ISpincastConfig getSpincastConfig()
public com.mitchellbosecke.pebble.extension.Extension getExtension()
ISpincastPebbleTemplatingEngineConfiggetExtension in interface ISpincastPebbleTemplatingEngineConfigpublic int getTemplateCacheItemNbr()
ISpincastPebbleTemplatingEngineConfiggetTemplateCacheItemNbr in interface ISpincastPebbleTemplatingEngineConfig<= 0,
thi cache will be disabled.public int getTagCacheTypeItemNbr()
ISpincastPebbleTemplatingEngineConfiggetTagCacheTypeItemNbr in interface ISpincastPebbleTemplatingEngineConfig<= 0,
thi cache will be disabled.public boolean isStrictVariablesEnabled()
ISpincastPebbleTemplatingEngineConfigFrom 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 ISpincastPebbleTemplatingEngineConfigCopyright © 2016. All rights reserved.