-
Notifications
You must be signed in to change notification settings - Fork 4
/
app.rb
29 lines (25 loc) · 669 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
# Use the app.rb file to load Ruby code, modify or extend the models, or
# do whatever else you fancy when the theme is loaded.
module Nesta
class App
# Uncomment the Rack::Static line below if your theme has assets
# (i.e images or JavaScript).
#
# Put your assets in themes/bootstrap/public/bootstrap.
#
use Rack::Static, :urls => ["/bootstrap"], :root => "themes/bootstrap/public"
not_found do
haml :error
end
helpers do
def container
if @page && @page.flagged_as?('fluid')
'container-fluid'
else
'container'
end
end
end
# Add new routes here.
end
end