Work around possible mutable data issue #501
This commit is contained in:
parent
dc33f6b3fa
commit
610716ee80
1 changed files with 4 additions and 0 deletions
|
@ -222,6 +222,10 @@ module Middleman
|
|||
def render_individual_file(path, locs={}, opts={}, context=self, &block)
|
||||
path = path.to_s
|
||||
|
||||
# Mutability is FUN!
|
||||
# Try to work around: https://github.com/middleman/middleman/issues/501
|
||||
locs = locs.dup
|
||||
|
||||
# Detect the remdering engine from the extension
|
||||
extension = File.extname(path)
|
||||
engine = extension[1..-1].to_sym
|
||||
|
|
Loading…
Reference in a new issue