Experiment with Hamster
This commit is contained in:
parent
55c5a46440
commit
22ce56492f
9 changed files with 57 additions and 120 deletions
|
@ -162,8 +162,8 @@ module Middleman
|
|||
# @return [Hash, nil]
|
||||
def method_missing(path)
|
||||
if @local_data.key?(path.to_s)
|
||||
@local_data[path.to_s] = ::Middleman::Util.recursively_enhance(@local_data[path.to_s])
|
||||
return @local_data[path.to_s]
|
||||
# Any way to cache this?
|
||||
return ::Middleman::Util.recursively_enhance(@local_data[path.to_s])
|
||||
else
|
||||
result = data_for_path(path)
|
||||
return result if result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue