lib/nanoc/helpers/rendering.rb in nanoc-4.0.0b4 vs lib/nanoc/helpers/rendering.rb in nanoc-4.0.0rc1
- old
+ new
@@ -90,13 +90,13 @@
assigns = {
content: captured_content,
item: @item,
item_rep: @item_rep,
items: @items,
- layout: Nanoc::LayoutView.new(layout), # FIXME: this does not need to be rewrapped
+ layout: layout,
layouts: @layouts,
config: @config,
- site: @site
+ site: @site,
}.merge(other_assigns)
# Get filter name
filter_name, filter_args = @site.unwrap.compiler.rules_collection.filter_for_layout(layout)
raise Nanoc::Int::Errors::CannotDetermineFilter.new(layout.identifier) if filter_name.nil?