Sha256: 2b446db03668de021a7e7e69f541ea01a126b241e0806d74e91b03f510895c78
Contents?: true
Size: 1.2 KB
Versions: 3
Compression:
Stored size: 1.2 KB
Contents
require 'allegro' # Rack config use Rack::Static, :urls => ['/css', '/js', '/images', '/favicon.ico'], :root => 'public' use Rack::CommonLogger if ENV['RACK_ENV'] == 'development' use Rack::ShowExceptions end # # Create and configure a toto instance # allegro = Allegro::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 allegro
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
allegro-0.0.0pre3 | lib/template/config.ru |
allegro-0.0.0pre2 | lib/template/config.ru |
allegro-0.0.0pre | lib/template/config.ru |