mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-03 09:05:13 -07:00
Plug Optimizer in Document.parse
This commit is contained in:
@@ -5,7 +5,7 @@ module Liquid
|
|||||||
def self.parse(tokens, parse_context)
|
def self.parse(tokens, parse_context)
|
||||||
doc = new(parse_context)
|
doc = new(parse_context)
|
||||||
doc.parse(tokens, parse_context)
|
doc.parse(tokens, parse_context)
|
||||||
doc
|
Optimizer.new.optimize(doc)
|
||||||
end
|
end
|
||||||
|
|
||||||
attr_reader :parse_context, :body
|
attr_reader :parse_context, :body
|
||||||
|
|||||||
Reference in New Issue
Block a user