From 659f063076b2f597cb0b9efb11c6d634d9c460b5 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Thu, 14 Mar 2013 23:21:58 -0700 Subject: [PATCH] Include file extension in template cache. May fix #798 --- .../lib/middleman-core/core_extensions/rendering.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleman-core/lib/middleman-core/core_extensions/rendering.rb b/middleman-core/lib/middleman-core/core_extensions/rendering.rb index 064b82de..8727bf19 100644 --- a/middleman-core/lib/middleman-core/core_extensions/rendering.rb +++ b/middleman-core/lib/middleman-core/core_extensions/rendering.rb @@ -254,8 +254,8 @@ module Middleman end # Read compiled template from disk or cache - template = cache.fetch(:compiled_template, options, body) do - ::Tilt.new(path, 1, options) { body } + template = cache.fetch(:compiled_template, extension, options, body) do + ::Tilt.new(path, 1, options) { body } end # Render using Tilt