I create a new web framework using clojure.

https://github.com/zhujinxian/road.git

It implements a servelet filter, transfer parameters of http request to 
handler and rendering the results of handler using hiccup lib.

you can use like:

(defn handler [^Integer x]
  {:text (str "hello world, road goes sucess!" x)})

(defn home [req content ^Integer num]
  {:hiccup "home.clj" :content (str "home" content) :num num})

(defroutes app 
  (GET "/web-test-0.1.0-SNAPSHOT-standalone" handler)
  (GET "/home/:num{\\d+}" home))


It like compojure 

(defroutes app
  (GET "/" [] "<h1>Hello World</h1>")
  (route/not-found "<h1>Page not found</h1>")),



but has more ...

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to