Fix slim's complaints about extra render options (:layout)
This commit is contained in:
parent
ca333bb306
commit
9af92fa7a3
2 changed files with 3 additions and 2 deletions
|
@ -247,8 +247,9 @@ module Middleman
|
|||
|
||||
# Merge per-extension options from config
|
||||
extension = File.extname(path)
|
||||
options = opts.merge(options_for_ext(extension))
|
||||
options = opts.dup.merge(options_for_ext(extension))
|
||||
options[:outvar] ||= '@_out_buf'
|
||||
options.delete(:layout)
|
||||
|
||||
# Overwrite with frontmatter options
|
||||
options = options.deep_merge(options[:renderer_options]) if options[:renderer_options]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue