I am the author of 16 books on artificial intelligence and the semantic web. I use this blog to share ideas and code snippets using my favorite languages: Clojure, Java, Haskell, Common Lisp, and Ruby.
Tuesday, February 17, 2009
The Sinatra web app DSL rocks
I had experimented with Sinatra several times before but today I really got into it. Setting up routes, handling GET/POST/PUT/DELETE, etc. takes very little code. I am only using Sinatra for publishing REST style web services (my own SPARQL endpoint server - I usually use the full Sesame library and web portal stack, but I wanted something leaner and more hackable).