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.
SpincastPebbleTemplatingEngineConfigDefault (org.spincast:spincast-framework 1.2.0 API)
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
Constructor and Description
SpincastPebbleTemplatingEngineConfigDefault(SpincastConfig 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 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?
-
-
Constructor Detail
-
SpincastPebbleTemplatingEngineConfigDefault
@Inject
public SpincastPebbleTemplatingEngineConfigDefault(SpincastConfig spincastConfig)
-
Method Detail
-
getSpincastConfig
protected SpincastConfig getSpincastConfig()
-
getExtension
public com.mitchellbosecke.pebble.extension.Extension getExtension()
Description copied from interface: SpincastPebbleTemplatingEngineConfig
Pebble extension to register: allows you to add custom
filters, functions, etc.
- Specified by:
getExtension
in interface SpincastPebbleTemplatingEngineConfig
-
getTemplateCacheItemNbr
public int getTemplateCacheItemNbr()
Description copied from interface: SpincastPebbleTemplatingEngineConfig
The number of template item to keep in cache.
- Specified by:
getTemplateCacheItemNbr
in interface SpincastPebbleTemplatingEngineConfig
- Returns:
- the max number of items to cache. If
<= 0
,
thi cache will be disabled.
-
getTagCacheTypeItemNbr
public int getTagCacheTypeItemNbr()
Description copied from interface: SpincastPebbleTemplatingEngineConfig
The number of "cache" tag item to keep in cache.
more info
- Specified by:
getTagCacheTypeItemNbr
in interface SpincastPebbleTemplatingEngineConfig
- Returns:
- the max number of items to cache. If
<= 0
,
this cache will be disabled.
-
isStrictVariablesEnabled
public boolean isStrictVariablesEnabled()
Description copied from interface: SpincastPebbleTemplatingEngineConfig
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 SpincastPebbleTemplatingEngineConfig
-
getValidationMessagesTemplatePath
public String getValidationMessagesTemplatePath()
Description copied from interface: SpincastPebbleTemplatingEngineConfig
The path to the template to use to display
the validation messages of a Form' field.
- Specified by:
getValidationMessagesTemplatePath
in interface SpincastPebbleTemplatingEngineConfig
-
getValidationGroupMessagesTemplatePath
public String getValidationGroupMessagesTemplatePath()
Description copied from interface: SpincastPebbleTemplatingEngineConfig
The path to the template to use to display
the validation messages of a Form's field group.
- Specified by:
getValidationGroupMessagesTemplatePath
in interface SpincastPebbleTemplatingEngineConfig
Copyright © 2019. All rights reserved.