Skip to content

Commit

Permalink
Remove lameness of trying to cache haml
Browse files Browse the repository at this point in the history
  • Loading branch information
therabidbanana committed Nov 19, 2010
1 parent 3f0a720 commit a99af7e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/orange-core/resources/parser.rb
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a99af7e

Please sign in to comment.