Sha256: 10342916972bd712d6003b96e809357df7c1771bcf8c0d9037425ba79890bc59

Contents?: true

Size: 265 Bytes

Versions: 10

Compression:

Stored size: 265 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
wbzyl-sinatra-static-assets-0.0.10 examples/summer/summer.rb
wbzyl-sinatra-static-assets-0.1.1 examples/summer/summer.rb
wbzyl-sinatra-static-assets-0.1.2 examples/summer/summer.rb
wbzyl-sinatra-static-assets-0.1.4 examples/summer/summer.rb
wbzyl-sinatra-static-assets-0.1.5 examples/summer/summer.rb
wbzyl-sinatra-static-assets-0.1.6 examples/summer/summer.rb
wbzyl-sinatra-static-assets-0.2.1 examples/summer/summer.rb
wbzyl-sinatra-static-assets-0.2.2 examples/summer/summer.rb
wbzyl-sinatra-static-assets-0.2.4 examples/summer/summer.rb
wbzyl-sinatra-static-assets-0.2.5 examples/summer/summer.rb