Permalink
Browse files

Index should inherit from Layout, which we need to require

  • Loading branch information...
1 parent 467a484 commit 7e5fb0afec6a00f63644002ecd84fa5a787c1fe3 @defunkt committed Dec 7, 2009
Showing with 2 additions and 1 deletion.
  1. +1 −0 app.rb
  2. +1 −1 views/index.rb
View
1 app.rb
@@ -3,6 +3,7 @@
class App < Sinatra::Base
register Mustache::Sinatra
+ require 'views/layout'
set :views, 'templates/'
set :mustaches, 'views/'
View
@@ -1,6 +1,6 @@
class App
module Views
- class Index < Mustache
+ class Index < Layout
def content
"Welcome! Mustache lives."
end

0 comments on commit 7e5fb0a

Please sign in to comment.