class Middleman::CoreExtensions::FrontMatter
def data(path)
def data(path) file = app.files.find(:source, path) return [{}, nil] unless file file_path = file[:full_path].to_s @cache[file_path] ||= begin if ::Middleman::Util.contains_frontmatter?(file_path, app.config[:frontmatter_delims]) ::Middleman::Util::Data.parse( file, app.config[:frontmatter_delims] ) else [{}, nil] end end end