module Liquid::Pry::Filter

pry filter hooks Pry into filter chain in a Liquid template. User can inspect or modify filter input and rendering context via convenient input and context local variables.

The filter returns its input, hence it can be placed anywhere in the filter chain, not necessarily at the end. If user alters the input variable, then modified version is returned.

@example

Today is {{ site.time | pry | date_to_string }}

Public Instance Methods

pry(input) click to toggle source

@param input filter input

# File lib/liquid/pry/filter.rb, line 18
def pry(input)
  context = @context
  binding.pry
  input
end