Merge pull request #1278 from bootstraponline/fix_after_render

Fix after_render
This commit is contained in:
Thomas Reynolds 2014-05-11 16:03:22 -07:00
commit 1c6cd27171

View file

@ -265,7 +265,12 @@ module Middleman
# Allow hooks to manipulate the result after render
self.class.callbacks_for_hook(:after_render).each do |callback|
# Uber::Options::Value doesn't respond to call
if callback.respond_to?(:call)
content = callback.call(content, path, locs, template_class)
elsif callback.respond_to?(:evaluate)
content = callback.evaluate(self, content, path, locs, template_class)
end
end
output = ::ActiveSupport::SafeBuffer.new ''