Sha256: a6dd3542824e0923316248037bc99c2709527ff746c5807c7f2e9a45ca3dac4b

Contents?: true

Size: 468 Bytes

Versions: 14

Compression:

Stored size: 468 Bytes

Contents

require 'haml'
require 'awestruct/front_matter_file'
require 'awestruct/hamlable'

module Awestruct
  class HamlFile < FrontMatterFile

    include Hamlable

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

    def output_filename
      File.basename( self.source_path, '.haml' )
    end

    def output_extension
      File.extname( output_filename )
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
awestruct-0.2.13 lib/awestruct/haml_file.rb
awestruct-0.2.12 lib/awestruct/haml_file.rb
awestruct-0.2.11 lib/awestruct/haml_file.rb
awestruct-0.2.10 lib/awestruct/haml_file.rb
awestruct-0.2.9 lib/awestruct/haml_file.rb
awestruct-0.2.8 lib/awestruct/haml_file.rb
awestruct-0.2.7 lib/awestruct/haml_file.rb
awestruct-0.2.6 lib/awestruct/haml_file.rb
awestruct-0.2.5 lib/awestruct/haml_file.rb
awestruct-0.2.4 lib/awestruct/haml_file.rb
awestruct-0.2.3 lib/awestruct/haml_file.rb
awestruct-0.2.2 lib/awestruct/haml_file.rb
awestruct-0.2.1 lib/awestruct/haml_file.rb
awestruct-0.2.0 lib/awestruct/haml_file.rb