Sha256: f5f10f225fc5a4f96eee95781f2cf1f64a11e719eb6108b4535a138c21d9be92
Contents?: true
Size: 370 Bytes
Versions: 6
Compression:
Stored size: 370 Bytes
Contents
module Liquid class Ifchanged < Block 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 end Template.register_tag('ifchanged', Ifchanged) end
Version data entries
6 entries across 6 versions & 2 rubygems