-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.rb
executable file
·60 lines (46 loc) · 916 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
class App < Sinatra::Application
helpers Sinatra::ContentFor
helpers do
def render(*args)
if args.first.is_a?(Hash) && args.first.keys.include?(:partial)
return erb "_#{args.first[:partial]}".to_sym, :layout => false
else
super
end
end
end
before do
content_type :html, :charset => 'utf-8'
cache_control :public, :must_revalidate, :max_age => 60 if settings.production?
end
get "/" do
erb :index
end
get "/resume" do
erb :resume
end
get "/about" do
erb :about
end
get "/brosmar" do
erb :brosmar
end
get "/bemate" do
erb :bemate
end
get "/ducktypen" do
erb :ducktypen
end
get "/europasinrefugio" do
erb :europasinrefugio
end
get "/herramienta-comunidades" do
erb :herramientacomunidades
end
get "/hola2016" do
erb :hola2016
end
not_found do
erb :'404'
end
end