Skip to content

Commit

Permalink
use haml
Browse files Browse the repository at this point in the history
  • Loading branch information
kei-s committed Aug 9, 2011
1 parent 2a33caa commit 0b5a258
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tmp
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source 'http://rubygems.org'

gem 'sinatra'
gem 'haml'
gem 'github-markup'
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -13,4 +14,5 @@ PLATFORMS

DEPENDENCIES
github-markup
haml
sinatra
4 changes: 3 additions & 1 deletion app.rb
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions views/index.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
%h1 hi

0 comments on commit 0b5a258

Please sign in to comment.