Sha256: 7e9b0e3586d765daf019eee8edca2e94a8ba2dc6eb0ef2f4ca816db1e430f654
Contents?: true
Size: 914 Bytes
Versions: 9
Compression:
Stored size: 914 Bytes
Contents
module Parade module Commands # # Generate a parade outline presentation file. # class GenerateOutline include RenderFromTemplate def description "A generic presentation file (i.e. #{default_outline_filename})" end def generate(options) outline_filename = options['outline'] || default_outline_filename create_file_with_contents outline_filename, outline_template(options), options end def default_outline_filename "parade" end def outline_template(options) template_options = { 'erb_template_file' => File.join(default_template_path, "#{default_outline_filename}.erb"), 'title' => 'My Presentation', 'description' => 'The importance of unicorns!' }.merge(options) render_template template_options end end end end
Version data entries
9 entries across 9 versions & 1 rubygems