Class: Weaver::RawPage
Overview
Raw oage with no html
Instance Attribute Summary
Attributes inherited from Page
#favicon_name, #favicon_type, #onload_scripts, #scripts
Instance Method Summary collapse
- #generate(_back_folders, _options = {}) ⇒ Object
-
#initialize(title, global_settings, options, &block) ⇒ RawPage
constructor
A new instance of RawPage.
Methods inherited from Page
#background, #create_anchor, #on_page_load, #request_css, #request_js, #root, #set_favicon_path, #set_favicon_type, #top, #write_script_once
Constructor Details
#initialize(title, global_settings, options, &block) ⇒ RawPage
Returns a new instance of RawPage.
6 7 8 |
# File 'lib/weaver/page_types/raw_page.rb', line 6 def initialize(title, global_settings, , &block) super end |
Instance Method Details
#generate(_back_folders, _options = {}) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/weaver/page_types/raw_page.rb', line 10 def generate(_back_folders, = {}) elem = Elements.new(self, {}) elem.instance_eval(&@block) elem.generate end |