forked from freerobby/wedding_site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.rb
73 lines (49 loc) · 992 Bytes
/
app.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
require 'sinatra'
get '/' do
@page_title = set_title('Home')
erb :index
end
get '/our_story' do
@page_title = set_title('Our Story')
erb :our_story
end
get '/wedding_party' do
@page_title = set_title('Wedding Party')
erb :wedding_party
end
get '/registry' do
@page_title = set_title('Registry')
erb :registry
end
get '/schedule' do
@page_title = set_title('Schedule')
erb :schedule
end
get '/travel' do
@page_title = set_title('Travel')
erb :travel
end
get '/hotels' do
@page_title = set_title('Hotels')
erb :hotels
end
get '/restaurants' do
@page_title = set_title('Restaurants')
erb :restaurants
end
get '/transportation' do
@page_title = set_title('Transportation')
erb :transportation
end
get '/things_to_do' do
@page_title = set_title('Things To Do')
erb :things_to_do
end
get '/rsvp' do
@page_title = set_title('RSVP')
erb :rsvp
end
###########
def set_title(page_name)
"Macasek + Zettel Wedding - #{page_name}"
end