Class: Awestruct::FrontMatterFile

Inherits:
RenderableFile show all
Defined in:
lib/awestruct/front_matter_file.rb

Instance Attribute Summary collapse

Attributes inherited from Renderable

#site

Instance Method Summary collapse

Methods inherited from RenderableFile

#output_extension, #output_filename, #render

Methods inherited from Renderable

#render

Constructor Details

#initialize(site, source_path, relative_source_path, options = {}) ⇒ FrontMatterFile

Returns a new instance of FrontMatterFile.



9
10
11
12
13
# File 'lib/awestruct/front_matter_file.rb', line 9

def initialize(site, source_path, relative_source_path, options = {})
  super( site, source_path, relative_source_path, options )
  @raw_page_content = ''
  load_page
end

Instance Attribute Details

#front_matterObject (readonly)

Returns the value of attribute front_matter.



7
8
9
# File 'lib/awestruct/front_matter_file.rb', line 7

def front_matter
  @front_matter
end

#raw_page_contentObject (readonly)

Returns the value of attribute raw_page_content.



6
7
8
# File 'lib/awestruct/front_matter_file.rb', line 6

def raw_page_content
  @raw_page_content
end