Experiment with Hamster

This commit is contained in:
Thomas Reynolds 2015-03-20 13:58:23 -07:00
parent 55c5a46440
commit 22ce56492f
9 changed files with 57 additions and 120 deletions

View file

@ -87,10 +87,9 @@ module Middleman
end
# Data about this resource, populated from frontmatter or extensions.
# @return [HashWithIndifferentAccess]
Contract IsA['Middleman::Util::HashWithIndifferentAccess']
# @return [IndifferentHash]
Contract IsA['Middleman::Util::IndifferentHash']
def data
# TODO: Should this really be a HashWithIndifferentAccess?
::Middleman::Util.recursively_enhance(metadata[:page])
end