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

17 lines
259 B
Ruby
Raw Normal View History

2009-06-01 17:53:37 +00:00
# -*- coding: utf-8 -*-
require 'sinatra'
2009-10-19 19:07:23 +00:00
gem 'sinatra-static-assets'
2009-06-01 17:53:37 +00:00
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