summaryrefslogtreecommitdiff
path: root/application.rb
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2014-10-08 10:56:41 +0200
committergebele <gebele@in-silico.ch>2014-10-08 10:56:41 +0200
commit65e95824737b033ad16046626fe7dbdb7ae43756 (patch)
tree309c81a3e60067b149ea1b101d93433aa6467627 /application.rb
parentccf3ef5b6c74d9f9b729a49c745328a24aaa28e5 (diff)
dropped compass gem, switch to scss;clean-up files/code
Diffstat (limited to 'application.rb')
-rw-r--r--application.rb12
1 files changed, 3 insertions, 9 deletions
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