Sha256: 57b9c2a92f7728c17de3700ea27652bd8ae0d186a2439ed4f5d4b9845b360125
Contents?: true
Size: 771 Bytes
Versions: 3
Compression:
Stored size: 771 Bytes
Contents
module RevealCK # # Public: A Presentation is slide html and metadata. Access html via # #html. Access metadata via theme, title, author, transition. # class Presentation include Config attr_accessor :html def initialize @html = '' end def add(content) @html << content.html end def self.from_template(path) presentation = Presentation.new template = Templates::Processor.open path presentation.html = template.output({}) presentation end def self.from_dsl(path) RevealCK::PresentationDSL.load path end def self.load(path) if path.end_with? '.rb' Presentation.from_dsl path else Presentation.from_template path end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reveal-ck-0.2.0 | lib/reveal-ck/presentation.rb |
reveal-ck-0.1.8 | lib/reveal-ck/presentation.rb |
reveal-ck-0.1.7 | lib/reveal-ck/presentation.rb |