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