Sha256: 41666e006260fead7a738975adbf0e4a67b4848f5bd760286a9ca2de58f35e20

Contents?: true

Size: 482 Bytes

Versions: 9

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

module Liquid
  # @liquid_public_docs
  # @liquid_type tag
  # @liquid_category iteration
  # @liquid_name continue
  # @liquid_summary
  #   Causes a [`for` loop](/docs/api/liquid/tags/for) to skip to the next iteration.
  # @liquid_syntax
  #   {% continue %}
  class Continue < Tag
    INTERRUPT = ContinueInterrupt.new.freeze

    def render_to_output_buffer(context, output)
      context.push_interrupt(INTERRUPT)
      output
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
liquid-5.7.0 lib/liquid/tags/continue.rb
liquid-5.6.4 lib/liquid/tags/continue.rb
liquid-5.6.3 lib/liquid/tags/continue.rb
liquid-5.6.2 lib/liquid/tags/continue.rb
liquid-5.6.1 lib/liquid/tags/continue.rb
liquid-5.6.0 lib/liquid/tags/continue.rb
liquid-5.6.0.rc3 lib/liquid/tags/continue.rb
liquid-5.6.0.rc2 lib/liquid/tags/continue.rb
liquid-5.6.0.rc1 lib/liquid/tags/continue.rb