Module: Staticpress

Defined in:
lib/staticpress.rb,
lib/staticpress/cli.rb,
lib/staticpress/site.rb,
lib/staticpress/error.rb,
lib/staticpress/route.rb,
lib/staticpress/theme.rb,
lib/staticpress/plugin.rb,
lib/staticpress/pusher.rb,
lib/staticpress/server.rb,
lib/staticpress/helpers.rb,
lib/staticpress/plugins.rb,
lib/staticpress/version.rb,
lib/staticpress/metadata.rb,
lib/staticpress/settings.rb,
lib/staticpress/js_object.rb,
lib/staticpress/view_helpers.rb,
lib/staticpress/configuration.rb

Defined Under Namespace

Modules: Content, Helpers, Plugin, Plugins, Route Classes: CLI, Configuration, Error, JSObject, Metadata, Pusher, Server, Settings, Site, Theme, Version, ViewHelpers

Class Method Summary collapse

Class Method Details

.blog_pathObject



12
13
14
# File 'lib/staticpress.rb', line 12

def self.blog_path
  Pathname(@path || '.').expand_path
end

.blog_path=(path) ⇒ Object



16
17
18
# File 'lib/staticpress.rb', line 16

def self.blog_path=(path)
  @path = path
end

.rootObject



20
21
22
# File 'lib/staticpress.rb', line 20

def self.root
  Pathname File.expand_path('..', __FILE__)
end