From 5a585dd3abcfdd51e6b5ddc576caf6da9cfe3fe4 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Sun, 10 Feb 2013 17:04:53 -0800 Subject: [PATCH] Copy/paste error --- .../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 f61079ef..51d29e34 100644 --- a/middleman-core/lib/middleman-core/core_extensions/rendering.rb +++ b/middleman-core/lib/middleman-core/core_extensions/rendering.rb @@ -259,11 +259,11 @@ module Middleman end # Render using Tilt - content = template.render(context, path, locs, &block) + content = template.render(context, locs, &block) # Allow hooks to manipulate the result after render self.class.callbacks_for_hook(:after_render).each do |callback| - content = callback.call(content, locs, template_class) + content = callback.call(content, path, locs, template_class) end return content