Skip to content

Instantly share code, notes, and snippets.

@rbq
Created Sep 6, 2011
Embed
What would you like to do?
Sinatra route for SASS files
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