Class: Awestruct::MarkdownFile

Inherits:
FrontMatterFile show all
Includes:
Markdownable
Defined in:
lib/awestruct/markdown_file.rb

Instance Attribute Summary

Attributes inherited from FrontMatterFile

#front_matter, #raw_page_content

Attributes inherited from Renderable

#site

Instance Method Summary collapse

Methods included from Markdownable

#content, #render

Methods inherited from RenderableFile

#raw_page_content, #render

Methods inherited from Renderable

#render

Constructor Details

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

Returns a new instance of MarkdownFile.



10
11
12
# File 'lib/awestruct/markdown_file.rb', line 10

def initialize(site, source_path, relative_source_path, options = {})
  super(site, source_path, relative_source_path, options)
end

Instance Method Details

#output_extensionObject



18
19
20
# File 'lib/awestruct/markdown_file.rb', line 18

def output_extension
  '.html'
end

#output_filenameObject



14
15
16
# File 'lib/awestruct/markdown_file.rb', line 14

def output_filename
  File.basename( self.source_path, '.md' ) + output_extension
end