Class: Awestruct::Handlers::FrontMatterHandler
Instance Attribute Summary
Attributes inherited from BaseHandler
#delegate, #site
Instance Method Summary
collapse
Methods inherited from BaseHandler
#content_syntax, #dependencies, #execute_shell, #input_mtime, #output_extension, #output_filename, #output_path, #path, #relative_source_path, #simple_name, #stale?, #to_chain
Constructor Details
Returns a new instance of FrontMatterHandler.
9
10
11
12
|
# File 'lib/awestruct/handlers/front_matter_handler.rb', line 9
def initialize(site, delegate)
super
@parsed_parts = false
end
|
Instance Method Details
#content_line_offset ⇒ Object
29
30
31
32
|
# File 'lib/awestruct/handlers/front_matter_handler.rb', line 29
def content_line_offset
parse_parts()
@content_line_offset
end
|
#front_matter ⇒ Object
14
15
16
17
|
# File 'lib/awestruct/handlers/front_matter_handler.rb', line 14
def front_matter
parse_parts()
@front_matter
end
|
#inherit_front_matter(page) ⇒ Object
34
35
36
37
|
# File 'lib/awestruct/handlers/front_matter_handler.rb', line 34
def inherit_front_matter(page)
page.inherit_front_matter_from( front_matter )
super
end
|
#raw_content ⇒ Object
19
20
21
22
|
# File 'lib/awestruct/handlers/front_matter_handler.rb', line 19
def raw_content
parse_parts()
@raw_content
end
|
#rendered_content(context, with_layouts) ⇒ Object
24
25
26
27
|
# File 'lib/awestruct/handlers/front_matter_handler.rb', line 24
def rendered_content(context, with_layouts)
parse_parts()
@raw_content
end
|