Skip to content

Commit

Permalink
Added the defaults as examples in config.ru
Browse files Browse the repository at this point in the history
Signed-off-by: cloudhead <[email protected]>
  • Loading branch information
grempe authored and cloudhead committed Feb 7, 2010
1 parent 15d95de commit 836ec5b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions config.ru
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

require 'toto'

# Rack config
Expand All @@ -8,14 +9,27 @@ if ENV['RACK_ENV'] == 'development'
use Rack::ShowExceptions
end

# Run application
#
# Create and configure a toto instance
#
toto = Toto::Server.new do
#
# Add your settings here
# set [:setting], [value]
#
#
# set :author, ENV['USER'] # blog author
# set :title, Dir.pwd.split('/').last # site title
# set :root, "index" # page to load on /
# set :date, lambda {|now| now.strftime("%d/%m/%Y") } # date format for articles
# set :markdown, :smart # use markdown + smart-mode
# set :disqus, false # disqus id, or false
# set :summary, :max => 150, :delim => /~/ # length of article summary and delimiter
# set :ext, 'txt' # file extension for articles
# set :cache, 28800 # cache duration, in seconds

set :date, lambda {|now| now.strftime("%B #{now.day.ordinal} %Y") }
end

run toto


0 comments on commit 836ec5b

Please sign in to comment.