Module: Bureau::ClassMethods

Defined in:
lib/bureau.rb

Instance Method Summary collapse

Instance Method Details

#configObject



33
34
35
36
37
38
39
40
41
42
43
# File 'lib/bureau.rb', line 33

def config
  @config ||= {
    :client_name => 'Client Name',
    :website_url => 'www.domain.com',
    :path => '/admin',
    :logout_path => '/admin/logout', # sometimes higher in stack
    :menu => [[['Home', '/']]],
    :head_addons => '',
    :index => nil
  }
end

#newObject



31
# File 'lib/bureau.rb', line 31

def new(*); ::Rack::Static.new(super, :urls => ["/_static"], :root => DIR); end

#read(p) ⇒ Object



32
# File 'lib/bureau.rb', line 32

def read(p); F.read("%s/_templates/%s" % [DIR,p]); end