Sha256: 902cc633d29b53505cfa13069faf512773d7402df148658c8e1afb4e46bc725f
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 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 red(bold(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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shining-1.2.0 | lib/shining.rb |