Created
September 16, 2009 15:01
-
-
Save chrismdp/188087 to your computer and use it in GitHub Desktop.
Put this one level above a 'views' directory and run it. haml/sass parsing for quickfire templating... you'll need the haml, sass and sinatra gems.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'sinatra' | |
require 'haml' | |
require 'sass' | |
get '/stylesheet.css' do | |
content_type 'text/css', :charset => 'utf-8' | |
sass :stylesheet | |
end | |
get '/views/:page' do | |
haml params[:page].to_sym | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment