Module: MMBlog::Application

Defined in:
lib/mm-blog.rb

Defined Under Namespace

Classes: ContactForm

Class Method Summary collapse

Class Method Details

.configObject



15
16
17
# File 'lib/mm-blog.rb', line 15

def self.config
  @config
end

.config=(_config) ⇒ Object



11
12
13
# File 'lib/mm-blog.rb', line 11

def self.config= (_config)
  @config = _config
end

.totoObject



19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/mm-blog.rb', line 19

def self.toto
  Toto::Server.new do
    #
    # Add your settings here
    # set [:setting], [value]
    # 
    set :author,    MMBlog::Application.config[:author]
    set :title,     MMBlog::Application.config[:title]
    set :url,     MMBlog::Application.config[:url]
    set :root,      "home"
    set :disqus,    MMBlog::Application.config[:disqus] 
    set :date, lambda {|now| now.strftime("%B #{now.day.ordinal} %Y") }
  end
end