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, #dependencies, #execute_shell, #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
23
# 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 )
  @page.handler.inherit_front_matter(outer_page)
end

#input_mtime(ignored) ⇒ Object



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

def input_mtime(ignored)
  page.input_mtime
end

#output_extensionObject



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

def output_extension
  page.output_extension
end

#output_pathObject



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

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



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

def raw_content
  page.raw_content
end

#relative_source_pathObject



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

def relative_source_path
  page.relative_source_path
end

#rendered_content(context_ignored, with_layouts_ignored = true) ⇒ Object



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

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

#stale?Boolean

Returns:

  • (Boolean)


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

def stale?
  page.stale?
end