Permalink
Browse files

Make name configurable

  • Loading branch information...
1 parent 207ce05 commit 122a79d99db476d9b3ba35ca884d10d639b07caa @namelessjon committed Jul 1, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −0 app.rb
  2. +1 −1 black_book/views/layout.rb
  3. +1 −1 black_book/views/person.rb
View
1 app.rb
@@ -15,6 +15,7 @@ class App < ::Sinatra::Base
:templates => ::File.join(self.root, 'black_book', 'templates'),
}
}
+ set :name, 'BlackBook'
helpers do
def addresses
@@ -6,7 +6,7 @@ class Layout < ::Mustache
self.template_extension = 'html'
def title
- 'Addresses!'
+ BlackBook::App.name
end
end
end
@@ -4,7 +4,7 @@ module BlackBook
module Views
class Person < Layout
def title
- "#{name} - Addresses"
+ "#{name} - #{super}"
end
def name

0 comments on commit 122a79d

Please sign in to comment.