Sha256: 9dc4779e5f04f0cfb07cad82c05da5bfa61000d451723bf65de55077355ec68f

Contents?: true

Size: 502 Bytes

Versions: 2

Compression:

Stored size: 502 Bytes

Contents

#!/usr/bin/env ruby

lib = File.expand_path('../../lib/', __FILE__)
$:.unshift(lib) unless $:.include?(lib)

require 'fileutils'
require 'slider'

input = (ARGV[0] ||= 'slides')
template = (ARGV[1] ||= 'basic')

document = Slider::Document.new(input, template)
slides = document.render

File.open("#{input}.html", "w") do |file|
    file.write(slides)
end

unless File.exists?("#{input}-artefacts")
    FileUtils.cp_r(File.expand_path("../../templates/#{template}", __FILE__), "#{input}-artefacts")
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slider-0.2 bin/slider
slider-0.1 bin/slider