benchmark/slim.rb in faml-0.2.12 vs benchmark/slim.rb in faml-0.2.13
- old
+ new
@@ -13,10 +13,10 @@
context = Context.new
Haml::Engine.new(haml_code, ugly: true, escape_html: true).def_method(context, :haml)
context.instance_eval %{
def faml; #{Faml::Engine.new(generator: Temple::Generators::RailsOutputBuffer).call(haml_code)}; end
- def hamlit; #{Hamlit::Engine.new(escape_html: true, generator: Temple::Generators::RailsOutputBuffer).call(haml_code)}; end
+ def hamlit; #{Hamlit::Engine.new(generator: Temple::Generators::RailsOutputBuffer).call(haml_code)}; end
def slim; #{Slim::Engine.new(generator: Temple::Generators::RailsOutputBuffer).call(slim_code)}; end
}
Benchmark.ips do |x|
x.report('Haml') { context.haml }