Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 467 Bytes
require 'rubygems'
require 'bundler/setup'
require 'webmachine'
require 'webmachine/adapters/rack'
Dir["resources/*"].each {|f| require "./#{f}" }
require "./template"
Shoes = Webmachine::Application.new do |app|
app.routes do
add [], ShoesHomepage
add ["blog"], BlogResource
add ["blog", :slug], BlogResource
add ['*'], StaticResource, :root => "public"
end
app.configure do |config|
config.adapter = :Rack
end
end
run Shoes.adapter