Class: Awestruct::HamlFile
- Inherits:
-
FrontMatterFile
- Object
- OpenStruct
- Renderable
- RenderableFile
- FrontMatterFile
- Awestruct::HamlFile
- Includes:
- Hamlable
- Defined in:
- lib/awestruct/haml_file.rb
Instance Attribute Summary
Attributes inherited from FrontMatterFile
#front_matter, #raw_page_content
Attributes inherited from Renderable
Instance Method Summary collapse
-
#initialize(site, source_path, relative_source_path, options = {}) ⇒ HamlFile
constructor
A new instance of HamlFile.
- #output_extension ⇒ Object
- #output_filename ⇒ Object
Methods included from Hamlable
Methods inherited from RenderableFile
Methods inherited from Renderable
Constructor Details
#initialize(site, source_path, relative_source_path, options = {}) ⇒ HamlFile
Returns a new instance of HamlFile.
14 15 16 |
# File 'lib/awestruct/haml_file.rb', line 14 def initialize(site, source_path, relative_source_path, = {}) super(site, source_path, relative_source_path, ) end |
Instance Method Details
#output_extension ⇒ Object
22 23 24 |
# File 'lib/awestruct/haml_file.rb', line 22 def output_extension File.extname( output_filename ) end |
#output_filename ⇒ Object
18 19 20 |
# File 'lib/awestruct/haml_file.rb', line 18 def output_filename File.basename( self.source_path, '.haml' ) end |