Sha256: bc1730b293d73d419add32a09c654b99fe927f534d90cce88fe88260d6dc52a9
Contents?: true
Size: 359 Bytes
Versions: 11
Compression:
Stored size: 359 Bytes
Contents
module Liquid class Ifchanged < Block def render(context) context.stack do output = super if output != context.registers[:ifchanged] context.registers[:ifchanged] = output output else ''.freeze end end end end Template.register_tag('ifchanged'.freeze, Ifchanged) end
Version data entries
11 entries across 11 versions & 2 rubygems