Module: RubySlippers::Engine

Defined in:
lib/ruby_slippers/app.rb,
lib/ruby_slippers/repo.rb,
lib/ruby_slippers/site.rb,
lib/ruby_slippers/config.rb,
lib/ruby_slippers/engine.rb,
lib/ruby_slippers/article.rb,
lib/ruby_slippers/context.rb,
lib/ruby_slippers/archives.rb,
lib/ruby_slippers/template.rb

Defined Under Namespace

Modules: Template Classes: App, Archives, Article, Config, Context, Repo, Site

Constant Summary collapse

Paths =
{
  :templates  => "templates",
  :pages      => "templates/pages",
  :articles   => "articles"
}

Class Method Summary collapse

Class Method Details

.envObject



13
14
15
# File 'lib/ruby_slippers/engine.rb', line 13

def self.env
  ENV['RACK_ENV'] || 'production'
end

.env=(env) ⇒ Object



17
18
19
# File 'lib/ruby_slippers/engine.rb', line 17

def self.env= env
  ENV['RACK_ENV'] = env
end

.gem_rootObject



9
10
11
# File 'lib/ruby_slippers/engine.rb', line 9

def self.gem_root
  File.expand_path("../../", __FILE__)
end