Sha256: c3203872e833144b66a0e0febc5f1861875f02a0a65a0dfa3846d3cb84e214c1
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
$KCODE = 'utf' LIB_PATH = File.expand_path( File.dirname(__FILE__) ) $:.unshift(LIB_PATH) # core and stlibs require 'optparse' require 'erb' require 'logger' require 'fileutils' require 'pp' require 'uri' require 'net/http' # required gems require 'redcloth' # default textile library require 'kramdown' # default markdown library # own code require 'slideshow/opts' require 'slideshow/gen' module Slideshow VERSION = '0.8.1' def Slideshow.main # allow env variable to set RUBYOPT-style default command line options # e.g. -o slides -t <your_template_manifest_here> slideshowopt = ENV[ 'SLIDESHOWOPT' ] args = [] args += slideshowopt.split if slideshowopt args += ARGV.dup Gen.new.run(args) end end # module Slideshow # load built-in (required) helpers/plugins require 'slideshow/helpers/text_helper.rb' require 'slideshow/helpers/capture_helper.rb' # load built-in (optional) helpers/plugins # If a helper fails to load, simply ingnore it # If you want to use it install missing required gems e.g.: # gem install coderay # gem install ultraviolet etc. BUILTIN_OPT_HELPERS = [ 'slideshow/helpers/uv_helper.rb', 'slideshow/helpers/coderay_helper.rb', ] BUILTIN_OPT_HELPERS.each do |helper| begin require(helper) rescue Exception => e ; end end Slideshow.main if __FILE__ == $0
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slideshow-0.8.1 | lib/slideshow.rb |