Skip to content

Commit

Permalink
Index should inherit from Layout, which we need to require
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Dec 7, 2009
1 parent 467a484 commit 7e5fb0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

class App < Sinatra::Base
register Mustache::Sinatra
require 'views/layout'

set :views, 'templates/'
set :mustaches, 'views/'
Expand Down
2 changes: 1 addition & 1 deletion views/index.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class App
module Views
class Index < Mustache
class Index < Layout
def content
"Welcome! Mustache lives."
end
Expand Down

0 comments on commit 7e5fb0a

Please sign in to comment.