From d19213177a552a5980b9db330e0d027e42bbe575 Mon Sep 17 00:00:00 2001 From: Prathan Thananart Date: Thu, 28 Apr 2011 13:11:13 +0700 Subject: [PATCH] Added documentation for for-else --- lib/liquid/tags/for.rb | 2 ++ 1 file changed, 2 insertions(+) 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