Sha256: e9c5cdecea611069bec6c7ae79a6f787532a80e6aa7cd135f6e229f5a133e185

Contents?: true

Size: 983 Bytes

Versions: 29

Compression:

Stored size: 983 Bytes

Contents

require 'awestruct/handlers/base_handler'

module Awestruct
  module Handlers
    class PageDelegatingHandler < BaseHandler

      attr_accessor :page

      def initialize(site, page)
        super( site )
        @page = page
      end

      def path
        page.source_path
      end

      def inherit_front_matter(outer_page)
        #page.prepare!
        #page.handler.inherit_front_matter( outer_page )
        @page.handler.inherit_front_matter(outer_page)
      end

      def output_path
        page.output_path
      end

      def relative_source_path
        page.relative_source_path
      end

      def output_extension
        page.output_extension
      end

      def stale?
        page.stale?
      end

      def input_mtime(ignored)
        page.input_mtime
      end

      def raw_content
        page.raw_content
      end

      def rendered_content(context_ignored, with_layouts_ignored=true)
        page.content( true )
      end

    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

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