Class: Awestruct::Handlers::PageDelegatingHandler
- Inherits:
-
BaseHandler
- Object
- BaseHandler
- Awestruct::Handlers::PageDelegatingHandler
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
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
#page ⇒ Object
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)
end
|
40
41
42
|
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 40
def input_mtime(ignored)
page.input_mtime
end
|
#output_extension ⇒ Object
32
33
34
|
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 32
def output_extension
page.output_extension
end
|
#output_path ⇒ Object
24
25
26
|
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 24
def output_path
page.output_path
end
|
#path ⇒ Object
15
16
17
|
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 15
def path
page.source_path
end
|
#raw_content ⇒ Object
44
45
46
|
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 44
def raw_content
page.raw_content
end
|
#relative_source_path ⇒ Object
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
36
37
38
|
# File 'lib/awestruct/handlers/page_delegating_handler.rb', line 36
def stale?
page.stale?
end
|