Sha256: d5f4101f2e432aa00260d038c0a6e3719671f1a5f68c11509c5467e0e5d66a22
Contents?: true
Size: 987 Bytes
Versions: 1
Compression:
Stored size: 987 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__)) require 'rubygems' require 'ext/string' require 'ext/filemethods' require 'shining/preso' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shining-1.0.1 | lib/shining.rb |