Sha256: ee501226c2e479541803d6ddaf29f9abd54703fc4630f13387e761e4e2dfbe05

Contents?: true

Size: 441 Bytes

Versions: 13

Compression:

Stored size: 441 Bytes

Contents

require 'haml'
require 'awestruct/front_matter_file'
require 'awestruct/erbable'

module Awestruct
  class ErbFile < FrontMatterFile

    include Erbable

    def initialize(site, source_path, relative_source_path)
      super(site, source_path, relative_source_path)
    end

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

    def output_extension
      File.extname( output_filename )
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
awestruct-0.1.9 lib/awestruct/erb_file.rb
awestruct-0.1.8 lib/awestruct/erb_file.rb
awestruct-0.1.7 lib/awestruct/erb_file.rb
awestruct-0.1.6 lib/awestruct/erb_file.rb
awestruct-0.1.5 lib/awestruct/erb_file.rb
awestruct-0.1.4 lib/awestruct/erb_file.rb
awestruct-0.1.3 lib/awestruct/erb_file.rb
awestruct-0.1.2 lib/awestruct/erb_file.rb
awestruct-0.1.1 lib/awestruct/erb_file.rb
awestruct-0.1.0 lib/awestruct/erb_file.rb
awestruct-0.0.9 lib/awestruct/erb_file.rb
awestruct-0.0.8 lib/awestruct/erb_file.rb
awestruct-0.0.6 lib/awestruct/erb_file.rb