Class: Awestruct::FrontMatterFile

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

Direct Known Subclasses

AsciiDocFile, ErbFile, HamlFile, MarkdownFile, OrgmodeFile, ReStructuredTextFile, TextileFile

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

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

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

- (Object) front_matter (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

- (Object) raw_page_content (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