sinatra-static-assets/examples/summer/summer.rb
2009-06-01 19:53:37 +02:00

17 lines
265 B
Ruby

# -*- 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