filtered variables in for loops

This commit is contained in:
James MacAulay
2008-10-24 14:50:59 -04:00
parent edf7b5577b
commit 3d8efe04a7
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ module Liquid
# forloop.last:: Returns true if the item is the last item.
#
class For < Block
Syntax = /(\w+)\s+in\s+(#{VariableSignature}+)\s*(reversed)?/
Syntax = /(\w+)\s+in\s+(#{Expression}+)\s*(reversed)?/
def initialize(tag_name, markup, tokens)
if markup =~ Syntax