Sha256: d53554c81f2184ee46957d810332d17541cc0ce35b627de5106fcfb9635cd516
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
$:.unshift File.dirname(__FILE__) require 'rubygems' require 'ext/string' require 'ext/filemethods' require 'shining/preso' require 'shining/player' require 'shining/heroku' module Shining class << self def say something STDOUT.puts(something) unless defined?(Spec) # shush when running tests yield if block_given? end def error message STDERR.puts message end def root @root ||= File.expand_path File.dirname(__FILE__)/'..' end def templates_path root/'templates' end def sample_content_for format = 'html' case format when 'markdown' <<-CONTENTS # #{name} This is a new slide. It needs some lovin'! CONTENTS when 'haml' <<-CONTENTS %h1.centered #{name} %p.centered This is a new slide. It needs some lovin'! CONTENTS when 'html' <<-CONTENTS <h1 class="centered">#{name}</h1> <p class="centered">This is a new slide. It needs some lovin'!</p> CONTENTS end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shining-1.3.1 | lib/shining.rb |
shining-1.3.0 | lib/shining.rb |