Sha256: 0c5a54d37116eae51a576c1421cf5ca496393604a9cce45383632d42daf10b70

Contents?: true

Size: 510 Bytes

Versions: 26

Compression:

Stored size: 510 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
    include Retrieve
    def initialize(args)
      template = retrieve(:template, args)
      config = args[:config] || {}
      file = Templates::Finder.new.find template
      @template = Templates::Processor.open(file: file, config: config)
      @variables = args
    end

    def html
      @template.output(@variables)
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
reveal-ck-4.0.0 lib/reveal-ck/slide.rb
reveal-ck-3.9.2 lib/reveal-ck/slide.rb
reveal-ck-3.9.1 lib/reveal-ck/slide.rb
reveal-ck-3.9.0 lib/reveal-ck/slide.rb
reveal-ck-3.8.1 lib/reveal-ck/slide.rb
reveal-ck-3.8.0 lib/reveal-ck/slide.rb
reveal-ck-3.7.0 lib/reveal-ck/slide.rb
reveal-ck-3.6.0 lib/reveal-ck/slide.rb
reveal-ck-3.5.1 lib/reveal-ck/slide.rb
reveal-ck-3.5.0 lib/reveal-ck/slide.rb
reveal-ck-3.4.0 lib/reveal-ck/slide.rb
reveal-ck-3.3.1 lib/reveal-ck/slide.rb
reveal-ck-3.3.0 lib/reveal-ck/slide.rb
reveal-ck-3.2.0 lib/reveal-ck/slide.rb
reveal-ck-3.1.0 lib/reveal-ck/slide.rb
reveal-ck-3.0.1 lib/reveal-ck/slide.rb
reveal-ck-3.0.0 lib/reveal-ck/slide.rb
reveal-ck-0.6.2 lib/reveal-ck/slide.rb
reveal-ck-0.6.1 lib/reveal-ck/slide.rb
reveal-ck-0.6.0 lib/reveal-ck/slide.rb