Module: Middleman::CoreExtensions::FrontMatter::InstanceMethods
- Defined in:
- lib/middleman-core/core_extensions/front_matter.rb
Instance Method Summary collapse
-
#frontmatter_manager ⇒ Object
Access the Frontmatter API.
-
#template_data_for_file(path) ⇒ String
Get the template data from a path.
Instance Method Details
#frontmatter_manager ⇒ Object
Access the Frontmatter API
200 201 202 |
# File 'lib/middleman-core/core_extensions/front_matter.rb', line 200 def frontmatter_manager @_frontmatter_manager ||= FrontmatterManager.new(self) end |
#template_data_for_file(path) ⇒ String
Get the template data from a path
207 208 209 |
# File 'lib/middleman-core/core_extensions/front_matter.rb', line 207 def template_data_for_file(path) frontmatter_manager.data(path).last end |