From 65e95824737b033ad16046626fe7dbdb7ae43756 Mon Sep 17 00:00:00 2001 From: gebele Date: Wed, 8 Oct 2014 10:56:41 +0200 Subject: dropped compass gem, switch to scss;clean-up files/code --- application.rb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'application.rb') diff --git a/application.rb b/application.rb index 356c8f8..0185518 100644 --- a/application.rb +++ b/application.rb @@ -1,9 +1,3 @@ -require 'rubygems' -require 'compass' #must be loaded before sinatra -require 'sinatra' -require 'haml' #must be loaded after sinatra -require 'opentox-client' -require 'opentox-server' require_relative 'helper.rb' require File.join(ENV["HOME"],".opentox","config","lazar-gui.rb") # until added to ot-tools @@ -234,8 +228,8 @@ post '/predict/?' do end end -get '/predict/stylesheets/:name.css' do - content_type 'text/css', :charset => 'utf-8' - sass(:"stylesheets/#{params[:name]}", Compass.sass_engine_options ) +get '/style.css' do + headers 'Content-Type' => 'text/css; charset=utf-8' + scss :style end -- cgit v1.2.3