diff options
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/application.rb b/application.rb index db9d365..ddc8495 100644 --- a/application.rb +++ b/application.rb @@ -1,17 +1,19 @@ [ 'rubygems', 'sinatra', 'haml','sass' ].each do |lib| require lib end +require 'restclient' +require 'json' get '/?' do - haml :index + haml :software end get '/software/?' do haml :software end -get '/services/?' do - haml :services +get '/commercial/?' do + haml :commercial end get '/projects/?' do @@ -19,9 +21,18 @@ get '/projects/?' do 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 '/blog/?' do + #redirect "http://opentox.github.com" + haml :blog +end + get '/contact/?' do haml :contact end @@ -34,6 +45,10 @@ 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 |