Include file extension in template cache. May fix #798

This commit is contained in:
Ben Hollis 2013-03-14 23:21:58 -07:00
parent 6672c1c324
commit 659f063076

View file

@ -254,8 +254,8 @@ module Middleman
end end
# Read compiled template from disk or cache # Read compiled template from disk or cache
template = cache.fetch(:compiled_template, options, body) do template = cache.fetch(:compiled_template, extension, options, body) do
::Tilt.new(path, 1, options) { body } ::Tilt.new(path, 1, options) { body }
end end
# Render using Tilt # Render using Tilt