Class: Awestruct::Handlers::StringHandler

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

Instance Attribute Summary

Attributes inherited from BaseHandler

#delegate, #site

Instance Method Summary collapse

Methods inherited from BaseHandler

#content_line_offset, #content_syntax, #dependencies, #execute_shell, #front_matter, #inherit_front_matter, #input_mtime, #output_filename, #output_path, #path, #relative_source_path, #simple_name, #stale?, #to_chain

Constructor Details

#initialize(site, content, output_extension = '.html') ⇒ StringHandler

Returns a new instance of StringHandler.



8
9
10
11
12
# File 'lib/awestruct/handlers/string_handler.rb', line 8

def initialize(site, content, output_extension='.html')
  super( site )
  @content = content
  @output_extension = output_extension
end

Instance Method Details

#output_extensionObject



14
15
16
# File 'lib/awestruct/handlers/string_handler.rb', line 14

def output_extension
  @output_extension
end

#raw_contentObject



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

def raw_content
  @content
end

#rendered_content(context, with_layouts = true) ⇒ Object



23
24
25
# File 'lib/awestruct/handlers/string_handler.rb', line 23

def rendered_content(context, with_layouts=true)
  raw_content
end