Skip to content

Instantly share code, notes, and snippets.

@kisoku
Created August 4, 2009 07:57
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 kisoku/161092 to your computer and use it in GitHub Desktop.
Save kisoku/161092 to your computer and use it in GitHub Desktop.
module Sass::Script
module Functions
def base_color
Sass::Script.parse($PICKER_BASE_COLOR, 1, 1, "PICKER_BASE_COLOR")
end
end
end
get '/demo/style/:name' do
$PICKER_BASE_COLOR = params['base_color']
content_type 'text/css', :charset => 'utf-8'
sass :"stylesheets/demo/#{params[:name]}", Compass.sass_engine_options
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment