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

17 lines
259 B
Ruby

# -*- coding: utf-8 -*-
require 'sinatra'
gem '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