class Liquid::Ifchanged
Public Instance Methods
render(context)
click to toggle source
Calls superclass method
Liquid::Block#render
# File lib/liquid/tags/ifchanged.rb, line 4 def render(context) context.stack do output = super if output != context.registers[:ifchanged] context.registers[:ifchanged] = output output else ''.freeze end end end