Merge pull request #1443 from hagenburger/allow-custom-option
don’t override :custom if already set
This commit is contained in:
commit
04da75a2eb
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ module Middleman
|
|||
filename: eval_file,
|
||||
line: line,
|
||||
syntax: syntax,
|
||||
custom: { middleman_context: ctx.app }
|
||||
custom: (options[:custom] || {}).merge(middleman_context: ctx.app)
|
||||
}
|
||||
|
||||
if ctx.is_a?(::Middleman::TemplateContext) && file
|
||||
|
|
Loading…
Reference in a new issue