Created
September 6, 2011 10:57
-
-
Save rbq/1197261 to your computer and use it in GitHub Desktop.
Sinatra route for SASS files
This file contains hidden or 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
get '/:name.css' do | |
content_type 'text/css', :charset => 'utf-8' | |
response.headers['Cache-Control'] = 'public, max-age=3600' | |
sass :"stylesheets/#{params[:name]}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment