Skip to content

Instantly share code, notes, and snippets.

@dsp
Created February 27, 2010 09:49
Show Gist options
  • Save dsp/316609 to your computer and use it in GitHub Desktop.
Save dsp/316609 to your computer and use it in GitHub Desktop.
(ns net.experimentalworks.clojure.comp
(:use compojure))
(defroutes helloworld-routes
(GET "/*"
(html [:html [ :body [ :p "Hello World"]]])))
(decorate helloworld-routes (with-session :memory))
(run-server {:port 8080}
"/*" (servlet helloworld-routes))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment