Sha256: ce7d2c698dedeae7e6d2f404ac6db5ec8c3c83487ba3752167c8aa4ea22edb32
Contents?: true
Size: 778 Bytes
Versions: 2
Compression:
Stored size: 778 Bytes
Contents
require_relative 'html_output' module Parade module Commands # # Saves an html representation of the presentation to a single HTML file. # # @see HtmlOutput # class StaticHtml include RenderFromTemplate def description "Output into a single HTML file" end def generate(options) options.merge!('template' => 'onepage') 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 def default_html_output "presentation.html" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
parade-0.9.2 | lib/parade/commands/static_html.rb |
parade-0.9.1 | lib/parade/commands/static_html.rb |