Sha256: ddba88a78d73e7b013d1983555c9ee131c196a8eb48bfeca4d14cb4facc8ee23

Contents?: true

Size: 740 Bytes

Versions: 1

Compression:

Stored size: 740 Bytes

Contents

require 'tilt'
require 'valise'

module RhetButler
  class HTMLGenerator
    class Presentation
      def initialize(configuration)
        @author_name = configuration.author
        @title = configuration.title
        @description = configuration.description
      end

      attr_accessor :author_name, :title, :description
    end

    def initialize(configuration, templates)
      @impress_config = configuration.impress_config
      @templates = templates
      @slides = []
      @presentation = Presentation.new(configuration)
    end

    attr_accessor :slides, :presentation, :impress_config

    def render(path, scope=nil, locals=nil)
      @templates.find(path).contents.render(scope || self, locals || {})
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rhet-butler-0.5.0 lib/rhet-butler/html-generator.rb