Sha256: b338357e3405dde53b2379c0160456e7aa05d1b1cafcaf4e3930db7cd34f01d6

Contents?: true

Size: 457 Bytes

Versions: 3

Compression:

Stored size: 457 Bytes

Contents

module RevealCK
  #
  # Public: A Slide produces HTML output to be included in a
  # presentation. Presently, this output is based upon a template.
  #
  class Slide

    def initialize(args)
      template = args[:template] || raise(':template is required')
      file = Templates::Finder.new.find template
      @template = Templates::Processor.open file
      @variables = args
    end

    def html
      @template.output(@variables)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reveal-ck-0.2.0 lib/reveal-ck/slide.rb
reveal-ck-0.1.8 lib/reveal-ck/slide.rb
reveal-ck-0.1.7 lib/reveal-ck/slide.rb