public.javadoc.org.spincast.plugins.pebble.SpincastPebbleTemplatingEngineConfigDefault.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.
The newest version!
SpincastPebbleTemplatingEngineConfigDefault (org.spincast:spincast-framework 0.9.28 API)
org.spincast.plugins.pebble
Class SpincastPebbleTemplatingEngineConfigDefault
- java.lang.Object
-
- org.spincast.plugins.pebble.SpincastPebbleTemplatingEngineConfigDefault
-
- All Implemented Interfaces:
- ISpincastPebbleTemplatingEngineConfig
public class SpincastPebbleTemplatingEngineConfigDefault
extends Object
implements ISpincastPebbleTemplatingEngineConfig
Default implementation for the configurations of
the Pebble templating engine plugin.
-
-
Constructor Summary
Constructors
Constructor and Description
SpincastPebbleTemplatingEngineConfigDefault(ISpincastConfig spincastConfig)
-
Method Summary
All Methods Instance Methods Concrete 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.
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?
-
-
Constructor Detail
-
SpincastPebbleTemplatingEngineConfigDefault
@Inject
public SpincastPebbleTemplatingEngineConfigDefault(ISpincastConfig spincastConfig)
-
Method Detail
-
getSpincastConfig
protected ISpincastConfig getSpincastConfig()
-
getExtension
public com.mitchellbosecke.pebble.extension.Extension getExtension()
Description copied from interface: ISpincastPebbleTemplatingEngineConfig
Pebble extension to register: allows you to add custom
filters, functions, etc.
- Specified by:
getExtension in interface ISpincastPebbleTemplatingEngineConfig
-
getTemplateCacheItemNbr
public int getTemplateCacheItemNbr()
Description copied from interface: ISpincastPebbleTemplatingEngineConfig
The number of template item to keep in cache.
- Specified by:
getTemplateCacheItemNbr in interface ISpincastPebbleTemplatingEngineConfig
- Returns:
- the max number of items to cache. If
<= 0,
thi cache will be disabled.
-
getTagCacheTypeItemNbr
public int getTagCacheTypeItemNbr()
Description copied from interface: ISpincastPebbleTemplatingEngineConfig
The number of "cache" tag item to keep in cache.
more info
- Specified by:
getTagCacheTypeItemNbr in interface ISpincastPebbleTemplatingEngineConfig
- Returns:
- the max number of items to cache. If
<= 0,
thi cache will be disabled.
-
isStrictVariablesEnabled
public boolean isStrictVariablesEnabled()
Description copied from interface: ISpincastPebbleTemplatingEngineConfig
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."
- Specified by:
isStrictVariablesEnabled in interface ISpincastPebbleTemplatingEngineConfig
Copyright © 2016. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy