Interface Filter

    • Method Detail

      • filter

        Object filter​(Object var,
                      JinjavaInterpreter interpreter,
                      String... args)
        Filter the specified template variable within the context of a render process. {{ myvar|myfiltername(arg1,arg2) }}
        Parameters:
        var - the variable which this filter should operate on
        interpreter - current interpreter context
        args - any arguments passed to this filter invocation
        Returns:
        the filtered form of the given variable
      • preserveSafeString

        default boolean preserveSafeString()