Permalink
Browse files

use haml

  • Loading branch information...
1 parent 2a33caa commit 0b5a25809bdbfdbdf833014a17bc4bc6d5e17663 @kei-s committed Aug 9, 2011
Showing with 8 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −0 Gemfile
  3. +2 −0 Gemfile.lock
  4. +3 −1 app.rb
  5. +1 −0 views/index.haml
View
@@ -0,0 +1 @@
+tmp
View
@@ -1,4 +1,5 @@
source 'http://rubygems.org'
gem 'sinatra'
+gem 'haml'
gem 'github-markup'
View
@@ -2,6 +2,7 @@ GEM
remote: http://rubygems.org/
specs:
github-markup (0.5.3)
+ haml (3.1.2)
rack (1.3.2)
sinatra (1.2.6)
rack (~> 1.1)
@@ -13,4 +14,5 @@ PLATFORMS
DEPENDENCIES
github-markup
+ haml
sinatra
View
4 app.rb
@@ -1,7 +1,9 @@
require 'sinatra/base'
+require 'haml'
class Preview < Sinatra::Base
+ set :views, File.dirname(__FILE__) + '/views'
get '/' do
- 'hi'
+ haml :index
end
end
View
@@ -0,0 +1 @@
+%h1 hi

0 comments on commit 0b5a258

Please sign in to comment.