Sha256: 1ba28750f13e2e321af1e41dc8e9aba68a0cd8f1299b3d6bfb8040906bb8e59a

Contents?: true

Size: 504 Bytes

Versions: 60

Compression:

Stored size: 504 Bytes

Contents

require 'awestruct/handlers/base_handler'

module Awestruct
  module Handlers
    class StringHandler < BaseHandler


      def initialize(site, content, output_extension='.html')
        super( site )
        @content = content
        @output_extension = output_extension
      end

      def output_extension
        @output_extension
      end


      def raw_content
        @content
      end

      def rendered_content(context, with_layouts=true)
        raw_content
      end

    end
  end
end

Version data entries

60 entries across 60 versions & 2 rubygems

Version Path
awestruct-0.6.7 lib/awestruct/handlers/string_handler.rb
awestruct-0.6.6 lib/awestruct/handlers/string_handler.rb
awestruct-0.6.5 lib/awestruct/handlers/string_handler.rb
awestruct-0.6.4 lib/awestruct/handlers/string_handler.rb
awestruct-0.6.3 lib/awestruct/handlers/string_handler.rb
awestruct-0.6.2 lib/awestruct/handlers/string_handler.rb
awestruct-0.6.1 lib/awestruct/handlers/string_handler.rb
awestruct-0.6.0 lib/awestruct/handlers/string_handler.rb
awestruct-0.6.0.RC1 lib/awestruct/handlers/string_handler.rb
awestruct-0.6.0.alpha4 lib/awestruct/handlers/string_handler.rb
awestruct-0.6.0.alpha3 lib/awestruct/handlers/string_handler.rb
awestruct-0.6.0.alpha1 lib/awestruct/handlers/string_handler.rb
awestruct-0.5.7 lib/awestruct/handlers/string_handler.rb
awestruct-0.5.7.RC2 lib/awestruct/handlers/string_handler.rb
awestruct-0.5.7.RC1 lib/awestruct/handlers/string_handler.rb
awestruct-0.5.6 lib/awestruct/handlers/string_handler.rb
awestruct-0.5.6.beta9 lib/awestruct/handlers/string_handler.rb
awestruct-0.5.6.beta8 lib/awestruct/handlers/string_handler.rb
awestruct-0.5.6.beta7 lib/awestruct/handlers/string_handler.rb
awestruct-0.5.6.beta6 lib/awestruct/handlers/string_handler.rb