summaryrefslogtreecommitdiff
path: root/application.rb
blob: 6eee561049657a9c0392903c6a6bd06c11083f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[ 'rubygems', 'sinatra', 'haml','sass' ].each do |lib|
	require lib
end
require 'restclient'
require 'json'

get '/?' do
	haml :software
end

get '/software/?' do
	haml :software
end

get '/commercial/?' do
	haml :commercial
end

get '/projects/?' do
	haml :projects
end

get '/publications/?' do
  #@publications = JSON.parse(RestClient.get("http://entrezajax.appspot.com/esearch+esummary?db=pubmed&term=Helma+C[Auth]&apikey=cfcd208495d565ef66e7dff9f98764da"))
  #@publications = JSON.parse(RestClient.get("http://entrezajax.appspot.com/esearch+esummary?db=pubmed&retmax=100&term=Helma+C[Auth]&apikey=cfcd208495d565ef66e7dff9f98764da"))
  #@publications = JSON.parse(RestClient.get("http://entrezajax.appspot.com/esearch+esummary?db=pubmed&retmax=100&max=100&term=Helma+C[Auth]&apikey=cfcd208495d565ef66e7dff9f98764da"))
  #http://scholar.google.com/scholar?as_q=&num=10&btnG=Search+Scholar&as_epq=&as_oq=&as_eq=&as_occt=any&as_sauthors=Helma&as_publication=&as_ylo=&as_yhi=&as_allsubj=all&hl=en&lr=
	haml :publications
end

get '/presentations/?' do
  	haml :presentations
end

get '/blog/?' do
  #redirect "http://opentox.github.com"
	haml :blog
end

get '/contact/?' do
	haml :contact
end

get '/links/?' do
	haml :links
end

get '/awards/?' do
	haml :awards
end

get '/about/?' do
	haml :about
end

get '/style.css' do
	#headers 'Content-Type' => 'text/css; charset=utf-8'
	sass :style
end