Skip to content

Instantly share code, notes, and snippets.

@chrismdp
Created September 16, 2009 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrismdp/188087 to your computer and use it in GitHub Desktop.
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.
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