Class: Awestruct::MarukuFile

Inherits:
FrontMatterFile show all
Includes:
Blueclothable
Defined in:
lib/awestruct/maruku_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 Blueclothable

#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 = {}) ⇒ MarukuFile

Returns a new instance of MarukuFile.



12
13
14
# File 'lib/awestruct/maruku_file.rb', line 12

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

Instance Method Details

#output_extensionObject



20
21
22
# File 'lib/awestruct/maruku_file.rb', line 20

def output_extension
  '.html'
end

#output_filenameObject



16
17
18
# File 'lib/awestruct/maruku_file.rb', line 16

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