lib/curly/template_handler.rb in curly-templates-0.7.0 vs lib/curly/template_handler.rb in curly-templates-0.8.0

- old
+ new

@@ -26,11 +26,10 @@ path = template.virtual_path presenter_class = Curly::Presenter.presenter_for_path(path) source = Curly.compile(template.source, presenter_class) - template_digest = Digest::MD5.hexdigest(template.source) <<-RUBY if local_assigns.empty? options = assigns else @@ -44,22 +43,20 @@ end if key = presenter.cache_key @output_buffer = ActiveSupport::SafeBuffer.new - template_digest = #{template_digest.inspect} - if #{presenter_class}.respond_to?(:cache_key) presenter_key = #{presenter_class}.cache_key else presenter_key = nil end options = { expires_in: presenter.cache_duration } - cache([template_digest, key, presenter_key].compact, options) do + cache([key, presenter_key].compact, options) do safe_concat(view_function.call) end @output_buffer else