Sha256: 14e1ce96b246fdeda4490163163caa968e5cb628ac955afa779025f95f2088ab
Contents?: true
Size: 360 Bytes
Versions: 12
Compression:
Stored size: 360 Bytes
Contents
module Liquid # Break tag to be used to break out of a for loop. # # == Basic Usage: # {% for item in collection %} # {% if item.condition %} # {% break %} # {% endif %} # {% endfor %} # class Break < Tag def interrupt BreakInterrupt.new end end Template.register_tag('break'.freeze, Break) end
Version data entries
12 entries across 12 versions & 2 rubygems