Class HrefFunction

java.lang.Object
io.pebbletemplates.spring.extension.function.HrefFunction
All Implemented Interfaces:
io.pebbletemplates.pebble.extension.Function, io.pebbletemplates.pebble.extension.NamedArguments

public class HrefFunction extends Object implements io.pebbletemplates.pebble.extension.Function
Pebble function which adds the context path to the given url
Author:
Eric Bussieres
  • Field Details

  • 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:
      execute in interface io.pebbletemplates.pebble.extension.Function
      See Also:
      • Function.execute(Map, PebbleTemplate, EvaluationContext, int)
    • getArgumentNames

      public List<String> getArgumentNames()
      Specified by:
      getArgumentNames in interface io.pebbletemplates.pebble.extension.NamedArguments
      See Also:
      • NamedArguments.getArgumentNames()