sinatra-static-assets/examples/rsummer/summer.rb

22 lines
391 B
Ruby
Raw Normal View History

2009-06-01 21:12:22 +00:00
# -*- coding: utf-8 -*-
require 'sinatra/base'
2009-10-19 19:07:23 +00:00
gem 'sinatra-static-assets'
2009-06-01 21:12:22 +00:00
require 'sinatra/static_assets'
module Sinatra
class Summer < Sinatra::Base
helpers Sinatra::UrlForHelper
2009-11-23 22:28:59 +00:00
register Sinatra::StaticAssets
2009-06-01 21:12:22 +00:00
set :app_file, __FILE__
set :static, true
get '/?' do
@title = "Tatra Mountains, Błyszcz (2159 m)"
erb :index
2009-06-01 21:12:22 +00:00
end
end
end