Added documentation for for-else

This commit is contained in:
Prathan Thananart 2011-04-28 13:11:13 +07:00
parent caf59940d3
commit d19213177a

View File

@ -13,6 +13,8 @@ module Liquid
# <div {% if forloop.first %}class="first"{% endif %}>
# Item {{ forloop.index }}: {{ item.name }}
# </div>
# {% else %}
# There is nothing in the collection.
# {% endfor %}
#
# You can also define a limit and offset much like SQL. Remember