Class: OutputGeneration
- Inherits:
-
Object
- Object
- OutputGeneration
- Includes:
- ImageInteraction
- Defined in:
- lib/html_compilation/classes/setup/output_generation.rb
Instance Method Summary collapse
-
#initialize(app, ddl = "./data/output/files/") ⇒ OutputGeneration
constructor
A new instance of OutputGeneration.
Methods included from ImageInteraction
#place_image_content, #retrieve_image_content, #return_all_files
Constructor Details
#initialize(app, ddl = "./data/output/files/") ⇒ OutputGeneration
Returns a new instance of OutputGeneration.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/html_compilation/classes/setup/output_generation.rb', line 11 def initialize(app, ddl = "./data/output/files/") app.graph.populate_graph app.pages.each do |page| place_image_content(ddl + page.page, page.image) end app_html = AppHTML.new(app) html = app_html.build place_image_content(ddl.split("files/")[0] + "pa11y_" + app.application_name + '_' + app.env, html, ".html") #put html in the output folder need to remove files from ddl end |