lib/nanoc/base/page_rep.rb in nanoc-2.1.6 vs lib/nanoc/base/page_rep.rb in nanoc-2.2

- old
+ new

@@ -288,10 +288,10 @@ end # Create filter klass = layout.filter_class raise Nanoc::Errors::CannotDetermineFilterError.new(layout.path) if klass.nil? - filter = klass.new(self) + filter = klass.new(self, :layout => layout.to_proxy) # Layout Nanoc::NotificationCenter.post(:filtering_started, self, klass.identifier) @content[:post] = filter.run(layout.content) Nanoc::NotificationCenter.post(:filtering_ended, self, klass.identifier)