Class: Awestruct::Handlers::PageDelegatingHandler

Inherits:
BaseHandler
  • Object
show all
Defined in:
lib/awestruct/handlers/page_delegating_handler.rb

Instance Attribute Summary collapse

Attributes inherited from BaseHandler

#delegate, #site

Instance Method Summary collapse

Methods inherited from BaseHandler

#content_line_offset, #content_syntax, #front_matter, #output_filename, #simple_name, #to_chain

Constructor Details

#initialize(site, page) ⇒ PageDelegatingHandler

Returns a new instance of PageDelegatingHandler.



10
11
12
13
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 10

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

Instance Attribute Details

#pageObject

Returns the value of attribute page.



8
9
10
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 8

def page
  @page
end

Instance Method Details

#inherit_front_matter(outer_page) ⇒ Object



19
20
21
22
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 19

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

#input_mtime(ignored) ⇒ Object



40
41
42
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 40

def input_mtime(ignored)
  page.input_mtime
end

#output_extensionObject



32
33
34
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 32

def output_extension
  page.output_extension
end

#output_pathObject



24
25
26
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 24

def output_path
  page.output_path
end

#pathObject



15
16
17
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 15

def path
  page.source_path
end

#raw_contentObject



44
45
46
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 44

def raw_content
  page.raw_content
end

#relative_source_pathObject



28
29
30
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 28

def relative_source_path
  page.relative_source_path
end

#rendered_content(context_ignored, with_layouts_ignored = true) ⇒ Object



48
49
50
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 48

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

#stale?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 36

def stale?
  page.stale?
end