Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added the defaults as examples in config.ru

Signed-off-by: cloudhead <self@cloudhead.net>
  • Loading branch information...
commit 836ec5bed19d92967986e9f950b3c2916533d66b 1 parent 15d95de
@grempe grempe authored cloudhead committed
Showing with 16 additions and 2 deletions.
  1. +16 −2 config.ru
View
18 config.ru
@@ -1,3 +1,4 @@
+
require 'toto'
# Rack config
@@ -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
+
Please sign in to comment.
Something went wrong with that request. Please try again.