Class HrefFunction
java.lang.Object
io.pebbletemplates.spring.extension.function.HrefFunction
- All Implemented Interfaces:
io.pebbletemplates.pebble.extension.Function,io.pebbletemplates.pebble.extension.NamedArguments
Pebble function which adds the context path to the given url
- Author:
- Eric Bussieres
-
Field Details
-
FUNCTION_NAME
- See Also:
-
PARAM_URL
- See Also:
-
argumentNames
-
-
Constructor Details
-
HrefFunction
public HrefFunction()Constructor
-
-
Method Details
-
execute
public Object execute(Map<String, Object> args, io.pebbletemplates.pebble.template.PebbleTemplate self, io.pebbletemplates.pebble.template.EvaluationContext context, int lineNumber) - Specified by:
executein interfaceio.pebbletemplates.pebble.extension.Function- See Also:
-
Function.execute(Map, PebbleTemplate, EvaluationContext, int)
-
getArgumentNames
- Specified by:
getArgumentNamesin interfaceio.pebbletemplates.pebble.extension.NamedArguments- See Also:
-
NamedArguments.getArgumentNames()
-