Sha256: 284ba43a53532f82f6eb49be25dc74b5ab6a806be601f7e98770580b482fa5c0

Contents?: true

Size: 372 Bytes

Versions: 8

Compression:

Stored size: 372 Bytes

Contents

module Liquid

  # Continue tag to be used to break out of a for loop.
  #
  # == Basic Usage:
  #    {% for item in collection %}
  #      {% if item.condition %}
  #        {% continue %}
  #      {% endif %}
  #    {% endfor %}
  # 
  class Continue < Tag

    def interrupt
      ContinueInterrupt.new
    end

  end

  Template.register_tag('continue', Continue)
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
liquid-2.5.5 lib/liquid/tags/continue.rb
liquid-2.5.4 lib/liquid/tags/continue.rb
liquid-2.5.3 lib/liquid/tags/continue.rb
liquid-2.5.1 lib/liquid/tags/continue.rb
wordify_liquid-2.5.1 lib/liquid/tags/continue.rb
liquid-2.5.0 lib/liquid/tags/continue.rb
locomotive_liquid-2.4.2 lib/liquid/tags/continue.rb
locomotive_liquid-2.4.1 lib/liquid/tags/continue.rb