public.javadoc.org.spincast.plugins.pebble.SpincastPebbleExtension.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!
SpincastPebbleExtension (org.spincast:spincast-framework 0.9.28 API)
org.spincast.plugins.pebble
Class SpincastPebbleExtension
- java.lang.Object
-
- org.spincast.plugins.pebble.SpincastPebbleExtension
-
- All Implemented Interfaces:
- com.mitchellbosecke.pebble.extension.Extension, ISpincastPebbleExtension
public class SpincastPebbleExtension
extends Object
implements ISpincastPebbleExtension
Spincast default Peeble extension implementation.
-
-
Constructor Summary
Constructors
Constructor and Description
SpincastPebbleExtension(com.google.inject.Provider<ITemplatingEngine> templatingEngineProvider)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
List<com.mitchellbosecke.pebble.operator.BinaryOperator>
getBinaryOperators()
protected com.mitchellbosecke.pebble.extension.Function
getCheckedFunction()
protected String
getCheckedFunctionName()
protected com.mitchellbosecke.pebble.extension.Function
getFieldCheckedFunction()
Returns a boolean.
protected String
getFieldCheckedFunctionName()
protected com.mitchellbosecke.pebble.extension.Function
getFieldErrorMessagesFunction()
Warning! The resulting content will be a SafeString
so it won't be escaped!
protected String
getFieldErrorMessagesFunctionName()
protected String
getFieldErrorMessagesFunctionTemplatePath()
protected com.mitchellbosecke.pebble.extension.Function
getFieldGroupErrorClassFunction()
The result is a class name or an empty String and
will be escaped.
protected String
getFieldGroupErrorClassFunctionErrorClass()
protected String
getFieldGroupErrorClassFunctionName()
protected com.mitchellbosecke.pebble.extension.Function
getFieldValueFunction()
The result *will* be escaped.
protected String
getFieldValueFunctionName()
Map<String,com.mitchellbosecke.pebble.extension.Filter>
getFilters()
Map<String,com.mitchellbosecke.pebble.extension.Function>
getFunctions()
Map<String,Object>
getGlobalVariables()
List<com.mitchellbosecke.pebble.extension.NodeVisitorFactory>
getNodeVisitors()
protected com.mitchellbosecke.pebble.extension.Function
getSelectedFunction()
protected String
getSelectedFunctionName()
ITemplatingEngine
getTemplatingEngine()
Map<String,com.mitchellbosecke.pebble.extension.Test>
getTests()
List<com.mitchellbosecke.pebble.tokenParser.TokenParser>
getTokenParsers()
List<com.mitchellbosecke.pebble.operator.UnaryOperator>
getUnaryOperators()
-
-
Constructor Detail
-
SpincastPebbleExtension
@Inject
public SpincastPebbleExtension(com.google.inject.Provider<ITemplatingEngine> templatingEngineProvider)
Constructor
-
Method Detail
-
getTemplatingEngine
public ITemplatingEngine getTemplatingEngine()
-
getFilters
public Map<String,com.mitchellbosecke.pebble.extension.Filter> getFilters()
- Specified by:
getFilters in interface com.mitchellbosecke.pebble.extension.Extension
-
getTests
public Map<String,com.mitchellbosecke.pebble.extension.Test> getTests()
- Specified by:
getTests in interface com.mitchellbosecke.pebble.extension.Extension
-
getTokenParsers
public List<com.mitchellbosecke.pebble.tokenParser.TokenParser> getTokenParsers()
- Specified by:
getTokenParsers in interface com.mitchellbosecke.pebble.extension.Extension
-
getBinaryOperators
public List<com.mitchellbosecke.pebble.operator.BinaryOperator> getBinaryOperators()
- Specified by:
getBinaryOperators in interface com.mitchellbosecke.pebble.extension.Extension
-
getUnaryOperators
public List<com.mitchellbosecke.pebble.operator.UnaryOperator> getUnaryOperators()
- Specified by:
getUnaryOperators in interface com.mitchellbosecke.pebble.extension.Extension
-
getGlobalVariables
public Map<String,Object> getGlobalVariables()
- Specified by:
getGlobalVariables in interface com.mitchellbosecke.pebble.extension.Extension
-
getNodeVisitors
public List<com.mitchellbosecke.pebble.extension.NodeVisitorFactory> getNodeVisitors()
- Specified by:
getNodeVisitors in interface com.mitchellbosecke.pebble.extension.Extension
-
getFunctions
public Map<String,com.mitchellbosecke.pebble.extension.Function> getFunctions()
- Specified by:
getFunctions in interface com.mitchellbosecke.pebble.extension.Extension
-
getFieldErrorMessagesFunctionName
protected String getFieldErrorMessagesFunctionName()
-
getFieldValueFunctionName
protected String getFieldValueFunctionName()
-
getFieldCheckedFunctionName
protected String getFieldCheckedFunctionName()
-
getFieldGroupErrorClassFunctionName
protected String getFieldGroupErrorClassFunctionName()
-
getCheckedFunctionName
protected String getCheckedFunctionName()
-
getSelectedFunctionName
protected String getSelectedFunctionName()
-
getFieldErrorMessagesFunction
protected com.mitchellbosecke.pebble.extension.Function getFieldErrorMessagesFunction()
Warning! The resulting content will be a SafeString
so it won't be escaped!
-
getFieldErrorMessagesFunctionTemplatePath
protected String getFieldErrorMessagesFunctionTemplatePath()
-
getFieldValueFunction
protected com.mitchellbosecke.pebble.extension.Function getFieldValueFunction()
The result *will* be escaped. If you don't want it to be escaped,
use the | raw filter after the function call.
-
getFieldCheckedFunction
protected com.mitchellbosecke.pebble.extension.Function getFieldCheckedFunction()
Returns a boolean.
-
getFieldGroupErrorClassFunction
protected com.mitchellbosecke.pebble.extension.Function getFieldGroupErrorClassFunction()
The result is a class name or an empty String and
will be escaped.
-
getFieldGroupErrorClassFunctionErrorClass
protected String getFieldGroupErrorClassFunctionErrorClass()
-
getCheckedFunction
protected com.mitchellbosecke.pebble.extension.Function getCheckedFunction()
-
getSelectedFunction
protected com.mitchellbosecke.pebble.extension.Function getSelectedFunction()
Copyright © 2016. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy