summaryrefslogtreecommitdiff
path: root/application.rb
diff options
context:
space:
mode:
Diffstat (limited to 'application.rb')
-rw-r--r--application.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/application.rb b/application.rb
index 6c6a73f..cebe4f2 100644
--- a/application.rb
+++ b/application.rb
@@ -1,4 +1,5 @@
require_relative 'helper.rb'
+require 'rdiscount'
include OpenTox
#require File.join(ENV["HOME"],".opentox","config","lazar-gui.rb") # until added to ot-tools
@@ -304,6 +305,11 @@ post '/predict/?' do
end
end
+get '/faq' do
+ @faq = RDiscount.new(File.read("FAQ.md")).to_html
+ haml :faq, :layout => :faq_layout
+end
+
get '/style.css' do
headers 'Content-Type' => 'text/css; charset=utf-8'
scss :style