Skip to content

Instantly share code, notes, and snippets.

Created Sep 6, 2011
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]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment