class Parade::Commands::StaticHtml

Saves an html representation of the presentation to a single HTML file.

@see HtmlOutput

Public Instance Methods

default_html_output() click to toggle source
# File lib/parade/commands/static_html.rb, line 31
def default_html_output
  "presentation.html"
end
description() click to toggle source
# File lib/parade/commands/static_html.rb, line 14
def description
  "Output into a single HTML file"
end
generate(options) click to toggle source
# File lib/parade/commands/static_html.rb, line 18
def generate(options)
  options.merge!('template' => 'print')

  html_generator = HtmlOutput.new
  html_content = html_generator.generate(options)

  output_file = options[:output] || default_html_output

  if create_file_with_contents output_file, html_content, options
    puts "Saved HTML to #{output_file}"
  end
end