Fix tablerow block to work with collection names in quoted syntax.

* Allows e.g. {% tablerow product in collections['frontpage'] %} instead of only collections.frontpage
This commit is contained in:
Dennis Theisen
2012-02-22 12:45:38 -05:00
parent d8b416187a
commit 043d816460
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
module Liquid
class TableRow < Block
Syntax = /(\w+)\s+in\s+(#{VariableSignature}+)/
Syntax = /(\w+)\s+in\s+(#{QuotedFragment}+)/
def initialize(tag_name, markup, tokens)
if markup =~ Syntax