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
# 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