Include file extension in template cache. May fix #798
This commit is contained in:
parent
6672c1c324
commit
659f063076
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue