mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
Freeze the body for case
This commit is contained in:
@@ -19,7 +19,7 @@ module Liquid
|
||||
end
|
||||
|
||||
def parse(tokens)
|
||||
body = new_body
|
||||
body = case_body = new_body
|
||||
body = @blocks.last.attachment while parse_body(body, tokens)
|
||||
@blocks.each do |condition|
|
||||
body = condition.attachment
|
||||
@@ -28,6 +28,7 @@ module Liquid
|
||||
body.freeze
|
||||
end
|
||||
end
|
||||
case_body.freeze
|
||||
end
|
||||
|
||||
def nodelist
|
||||
|
||||
Reference in New Issue
Block a user