class RhetButler::Web::PresentationApp
Public Class Methods
new(aspect, file_manager)
click to toggle source
# File lib/rhet-butler/web/presentation-app.rb, line 7 def initialize(aspect, file_manager) @file_manager = file_manager @aspect = aspect end
Public Instance Methods
assets_valise()
click to toggle source
# File lib/rhet-butler/web/presentation-app.rb, line 28 def assets_valise @file_manager.base_assets(configuration.template_cache) end
body()
click to toggle source
# File lib/rhet-butler/web/presentation-app.rb, line 43 def body html_generator.render(configuration.root_slide_template) end
call(env)
click to toggle source
# File lib/rhet-butler/web/presentation-app.rb, line 47 def call(env) [200, {'Content-Type' => "text/html"}, [body]] end
configuration()
click to toggle source
# File lib/rhet-butler/web/presentation-app.rb, line 12 def configuration @file_manager.aspect_config(@aspect) end
html_generator()
click to toggle source
# File lib/rhet-butler/web/presentation-app.rb, line 37 def html_generator generator = HTMLGenerator.new(configuration, template_handler) generator.root_step = root_step generator end
root_step()
click to toggle source
# File lib/rhet-butler/web/presentation-app.rb, line 32 def root_step slide_loader = SlideLoader.new(slides_valise, assets_valise, configuration) slide_loader.load_slides end
slides_valise()
click to toggle source
# File lib/rhet-butler/web/presentation-app.rb, line 24 def slides_valise @file_manager.slide_files end
template_cache()
click to toggle source
# File lib/rhet-butler/web/presentation-app.rb, line 16 def template_cache ::Tilt::Cache.new end
template_handler()
click to toggle source
# File lib/rhet-butler/web/presentation-app.rb, line 20 def template_handler @file_manager.aspect_templates(@aspect, template_cache) end