Class JoinFilter
java.lang.Object
io.pebbletemplates.pebble.extension.core.JoinFilter
- All Implemented Interfaces:
Filter
,NamedArguments
Concatenates all entries of a collection, optionally glued together with a particular character
such as a comma.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(Object input, Map<String, Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber) private String
join
(Collection<?> inputCollection, String glue)
-
Field Details
-
argumentNames
-
-
Constructor Details
-
JoinFilter
public JoinFilter()
-
-
Method Details
-
getArgumentNames
- Specified by:
getArgumentNames
in interfaceNamedArguments
-
apply
public Object apply(Object input, Map<String, Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber) throws PebbleException- Specified by:
apply
in interfaceFilter
- Throws:
PebbleException
-
join
-