Skip to content

Instantly share code, notes, and snippets.

@collin
Created August 17, 2008 21:53
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 collin/5837 to your computer and use it in GitHub Desktop.
Save collin/5837 to your computer and use it in GitHub Desktop.
/No, now I <3 Ruby
!!!
%html
%head
%link{:rel => :stylesheet, :type => "text/css", :href => "#{params[:name]}.css"}
%body
=yield
# static controller
get "/:name" do
haml params[:name].intern # I love the internet too.
end
# can't say enough good things about all this stuff.
get "/:name.css" do
content_type 'text/css', :charset => 'utf-8'
sass params[:name].intern
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment