Package liqp.filters

Class Pop


public class Pop extends Filter
Jekyll-specific filter for array manipulation: Return a new array with the original array's last item removed. If the original value is not an array, the value is returned as-is.
Author:
Christian Kohlschütter
See Also:
  • Constructor Details

    • Pop

      public Pop()
  • Method Details

    • apply

      public Object apply(Object value, TemplateContext context, Object... params)
      Description copied from class: Filter
      Applies the filter on the 'value', with the given 'context'.
      Overrides:
      apply in class Filter
      Parameters:
      value - the string value `AAA` in: `{{ 'AAA' | f:1,2,3 }}`
      context - the template context.
      params - the values [1, 2, 3] in: `{{ 'AAA' | f:1,2,3 }}`
      Returns:
      the result of the filter.