1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Remove Haml's obsoleted option in benchmark

This commit is contained in:
Takashi Kokubun 2019-09-15 11:11:03 +09:00
parent 81ba5647c1
commit ec1c84ac48
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -43,7 +43,7 @@ class Bench < Thor
object.instance_eval(File.read(ruby_file))
end
Haml::Engine.new(haml, escape_html: true, escape_attrs: true, ugly: true).def_method(object, :haml)
Haml::Engine.new(haml, escape_html: true, escape_attrs: true).def_method(object, :haml)
object.instance_eval "def faml; #{Faml::Engine.new.call(haml)}; end"
object.instance_eval "def hamlit; #{Hamlit::Engine.new.call(haml)}; end"
@ -59,7 +59,7 @@ class Bench < Thor
def code(file)
haml = File.read(file)
puts "#{?= * 49}\n Haml Source: #{file}\n#{?= * 49}"
puts Haml::Engine.new(haml, escape_html: true, escape_attrs: true, ugly: true).precompiled
puts Haml::Engine.new(haml, escape_html: true, escape_attrs: true).precompiled
puts "\n#{?= * 49}\n Faml Source: #{file}\n#{?= * 49}"
puts Faml::Engine.new.call(haml)
puts "\n#{?= * 49}\n Hamlit Source: #{file}\n#{?= * 49}"