Permalink
Browse files

Try to cope with lack of root for templates

  • Loading branch information...
namelessjon committed Jul 1, 2010
1 parent 122a79d commit ef0945ef3e4aac76c464991533faca7ed00fc5a9
Showing with 1 addition and 1 deletion.
  1. +1 −1 app.rb
View
2 app.rb
@@ -12,7 +12,7 @@ class App < ::Sinatra::Base
set :mustache, proc {
{
:namespace => ::BlackBook,
- :templates => ::File.join(self.root, 'black_book', 'templates'),
+ :templates => ::File.join(self.root || '.', 'black_book', 'templates'),
}
}
set :name, 'BlackBook'

0 comments on commit ef0945e

Please sign in to comment.