Class I18nExtension
- java.lang.Object
-
- io.pebbletemplates.pebble.extension.AbstractExtension
-
- io.pebbletemplates.pebble.extension.i18n.I18nExtension
-
- All Implemented Interfaces:
Extension
public class I18nExtension extends AbstractExtension
-
-
Constructor Summary
Constructors Constructor Description I18nExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,Function>
getFunctions()
Use this method to provide custom functions.-
Methods inherited from class io.pebbletemplates.pebble.extension.AbstractExtension
getAttributeResolver, getBinaryOperators, getFilters, getGlobalVariables, getNodeVisitors, getTests, getTokenParsers, getUnaryOperators
-
-
-
-
Method Detail
-
getFunctions
public java.util.Map<java.lang.String,Function> getFunctions()
Description copied from interface:Extension
Use this method to provide custom functions.- Specified by:
getFunctions
in interfaceExtension
- Overrides:
getFunctions
in classAbstractExtension
- Returns:
- A list of functions. It is okay to return null.
-
-