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