mirror of
https://github.com/kemko/liquid.git
synced 2026-01-08 03:05:42 +03:00
Use {} notation
This commit is contained in:
@@ -30,7 +30,7 @@ module Liquid
|
||||
end
|
||||
|
||||
def render(context)
|
||||
context.registers[:cycle] ||= Hash.new
|
||||
context.registers[:cycle] ||= {}
|
||||
|
||||
context.stack do
|
||||
key = context.evaluate(@name)
|
||||
|
||||
@@ -120,7 +120,7 @@ module Liquid
|
||||
private
|
||||
|
||||
def collection_segment(context)
|
||||
offsets = context.registers[:for] ||= Hash.new
|
||||
offsets = context.registers[:for] ||= {}
|
||||
|
||||
from = if @from == :continue
|
||||
offsets[@name].to_i
|
||||
|
||||
Reference in New Issue
Block a user