Sha256: 016d9bdef2efcdde3e1968d0aebe5dad9fb9abe04f0a971786a20b27e050c102
Contents?: true
Size: 411 Bytes
Versions: 8
Compression:
Stored size: 411 Bytes
Contents
# frozen_string_literal: true module Liquid class Ifchanged < Block def render_to_output_buffer(context, output) block_output = +'' super(context, block_output) if block_output != context.registers[:ifchanged] context.registers[:ifchanged] = block_output output << block_output end output end end Template.register_tag('ifchanged', Ifchanged) end
Version data entries
8 entries across 8 versions & 1 rubygems