From a99af7e888e73e62f63f8d1c7991936d845f128f Mon Sep 17 00:00:00 2001 From: David Haslem Date: Fri, 19 Nov 2010 14:47:45 -0500 Subject: [PATCH] Remove lameness of trying to cache haml --- lib/orange-core/resources/parser.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/orange-core/resources/parser.rb b/lib/orange-core/resources/parser.rb index f784061..08731bc 100755 --- a/lib/orange-core/resources/parser.rb +++ b/lib/orange-core/resources/parser.rb @@ -32,10 +32,6 @@ def haml(file, packet_binding, *vars, &block) opts.merge :orange => orange if packet_binding.is_a? Orange::Packet context = packet_binding['route.context'].to_s - unless temp - packet_binding['parser.haml-templates'] ||= {} - haml_engine = packet_binding['parser.haml-templates']["#{context}-#{resource}-#{file}"] || false - end end unless haml_engine @@ -75,9 +71,6 @@ def haml(file, packet_binding, *vars, &block) raise LoadError, "Couldn't find haml file '#{file}'" unless string haml_engine = Haml::Engine.new(string) - if packet_binding.is_a? Orange::Packet - packet_binding['parser.haml-templates', {}]["#{context}-#{resource}-#{file}"] = haml_engine - end end opts[:opts] = opts.dup out = haml_engine.render(packet_binding, opts, &block)