aboutsummaryrefslogtreecommitdiff
path: root/cljssss-g.clj
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2009-02-17 20:51:27 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2009-02-17 20:51:27 +0100
commit54c04f85adb6938ef9ef27b5d7a1ab592fb30461 (patch)
tree8bdaf5f571f4315020bde55313cf5cea780aba2d /cljssss-g.clj
Initial “hello world” commit.
Diffstat (limited to 'cljssss-g.clj')
-rw-r--r--cljssss-g.clj19
1 files changed, 19 insertions, 0 deletions
diff --git a/cljssss-g.clj b/cljssss-g.clj
new file mode 100644
index 0000000..6987a56
--- /dev/null
+++ b/cljssss-g.clj
@@ -0,0 +1,19 @@
+(ns cljssss-g
+ (require [net.cgrand.enlive-html :as enlive]
+ [clojure.xml :as xml]
+ compojure)
+ (use compojure))
+
+(defservlet cljssss-g
+ (GET "/"
+ (html [:html
+ [:head
+ [:title "G&ouml;del-Gentzen Clojure Syndication Services Super System"]]
+ [:body
+ [:h1 "G&ouml;del-Gentzen Clojure Syndication Services Super System"]
+ [:p "Fnord."]]]))
+ (ANY "*"
+ (page-not-found)))
+
+(run-server {:port 8080}
+ "/*" cljssss-g)