view server.clj @ 85:da4f4f91f8aa laserkard

got three separate Raphael instances
author Robert McIntyre <rlm@mit.edu>
date Sun, 25 Jul 2010 22:36:16 -0400
parents 874a6a2c28cf
children 5b0753c6f34d
line wrap: on
line source
1 (ns laserkard.server
2 (:use (compojure.http request servlet session routes)
3 (compojure.server jetty)
4 (compojure control)
5 (laserkard buy-temp faq)
7 ))
9 (defroutes example
10 (GET "/index.clj" [] "<h1> hello, connie, good to meet you</h1>")
11 (GET "/buy-temp.clj" [] (buy-gen))
12 (GET "/faq.clj" [] (faq))
13 )
17 (defserver laserkard-server
18 {:port 9000 :host "localhost"}
19 "/*" (servlet example))