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

17 lines
265 B
Ruby
Raw Normal View History

2009-06-01 17:53:37 +00:00
# -*- coding: utf-8 -*-
require 'sinatra'
gem 'wbzyl-sinatra-static-assets'
require 'sinatra/static_assets'
get "/?" do
@title = "Tatra Mountains, Błyszcz (2159 m)"
erb :index
end
get "/:page" do
@title = "#{params[:page]}"
erb :"#{params[:page]}"
end