Created
August 4, 2009 07:57
-
-
Save kisoku/161092 to your computer and use it in GitHub Desktop.
This file contains 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
module Sass::Script | |
module Functions | |
def base_color | |
Sass::Script.parse($PICKER_BASE_COLOR, 1, 1, "PICKER_BASE_COLOR") | |
end | |
end | |
end |
This file contains 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 '/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