Sha256: 4a3f4b86d935698b2f33b720e30301589985f7b016b6e21d3a931a38fced08db
Contents?: true
Size: 355 Bytes
Versions: 8
Compression:
Stored size: 355 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', Break) end
Version data entries
8 entries across 8 versions & 3 rubygems