Method: Liquid::Ifchanged#render
- Defined in:
- lib/liquid/tags/ifchanged.rb
#render(context) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# 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 |