diff --git a/lib/liquid/tags/for.rb b/lib/liquid/tags/for.rb index 810eb0f..9461a8b 100644 --- a/lib/liquid/tags/for.rb +++ b/lib/liquid/tags/for.rb @@ -13,6 +13,8 @@ module Liquid #
# Item {{ forloop.index }}: {{ item.name }} #
+ # {% else %} + # There is nothing in the collection. # {% endfor %} # # You can also define a limit and offset much like SQL. Remember