mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-28 22:55:12 -07:00
added attr_readers for collection and variable names in for tag (#909)
This commit is contained in:
@@ -46,6 +46,9 @@ module Liquid
|
|||||||
class For < Block
|
class For < Block
|
||||||
Syntax = /\A(#{VariableSegment}+)\s+in\s+(#{QuotedFragment}+)\s*(reversed)?/o
|
Syntax = /\A(#{VariableSegment}+)\s+in\s+(#{QuotedFragment}+)\s*(reversed)?/o
|
||||||
|
|
||||||
|
attr_reader :collection_name
|
||||||
|
attr_reader :variable_name
|
||||||
|
|
||||||
def initialize(tag_name, markup, options)
|
def initialize(tag_name, markup, options)
|
||||||
super
|
super
|
||||||
@from = @limit = nil
|
@from = @limit = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user