module Middleman::CoreExtensions::FrontMatter::InstanceMethods

Public Instance Methods

frontmatter_manager() click to toggle source

Access the Frontmatter API

# File lib/middleman-core/core_extensions/front_matter.rb, line 211
def frontmatter_manager
  @_frontmatter_manager ||= FrontmatterManager.new(self)
end
template_data_for_file(path) click to toggle source

Get the template data from a path @param [String] path @return [String]

# File lib/middleman-core/core_extensions/front_matter.rb, line 218
def template_data_for_file(path)
  frontmatter_manager.data(path).last
end