(defn render-test [ret tmt] (-> (resp/response "------render----test------") (#(resp/content-type %1 "text/plain"))))
(defn foo "I don't do a whole lot." [x] (str "来自源码目录的参数:" x)) (defn handler [^Integer x] {:$r render-test :text (str "hello world, road goes sucess!" (foo x))}) (defn home [req content ^Integer num] {:hiccup "home.clj" :content (str "home" content) :num num}) (defroad road (GET "/web-test-0.1.0-SNAPSHOT-standalone/main" handler) (GET "/web-test-0.1.0-SNAPSHOT-standalone/home/:num{\\d+}" home)) (defn -main [& args] (log/info "---------log4j test-------") (jetty/run-jetty road {:port 3000})) https://github.com/zhujinxian/road.git <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fzhujinxian%2Froad.git&sa=D&sntz=1&usg=AFQjCNFowkAquOVhS0iYdRjEzfhBOCMWGw> On Friday, September 28, 2012 at 3:36:20 PM UTC+8, Roman Yakovlev wrote: > > Hi > So i'd like to point to the problem here. Clojure web framework in google > get these results, at least for me > 1. noir > 2. stackoverflow question 2008 year > 3. stackoverflow question 2010 year > 4. joodo ( outdated thing developed by one person) > 5. Compojure ( routing dsl) > So there is no popular framework these days for clojure. > Noir is mostly Chris Granger thing. As he make Lighttable today Noir > developed by some other people ( or may be on person not sure). Main site > instructions are nice but already outdated ( lein2). No news, no blog, no > new features, no examples, no infrastructure. Lein new project, insert noir > in dependencies and you don't have working app, you must add :main and > stuff to work. What about testing ? no info, no structure, decide on your > own. > It's no secret that web development today is biggest and popular trend. If > language and it's community have good web framework that language will gain > more popularity. > Take Ruby on rails it has over 30 core contributers, huuuge community, > active development, industry standart web development framework. Good > testing, development infrastracture, easy start, sprockets for js css > managment and so on. Also it has some books about testing and framework > itself which is good start point for newbies. > I like Clojure, for simplicity mostly. It has amazing power and i believe > it can be very good platform for web development. > So what i suggest : > Take 1 platform for web development in Clojure (for example noir as most > mature framework) . > Form working core group from 5-6 people. > Decide about name of the project ( or take Noir) > Make good site about it > Make a plan for development ( what core features should have first version) > Make first version > Make couple good examples > Make good documentation and maybe a book ( community book for example on > github that will be online and updated frequently). > -------------- > http://www.playframework.org/ good example what site could be > Alternative to online book can be guides, as for ruby on rails > http://guides.rubyonrails.org/index.html > Another good news that there is nice web IDE for Clojure by Bodil Stokke > https://github.com/bodil/catnip. Super easy install, very nice > insterface, reactive interface ( no need for browser refresh, autorecompile > when you save ) web based ! and under active development, just perfect > place for newbies to start. So this project also can be added to Clojure > Web framework project. > Also we have ClojureScript so Clojure web framework would be perfect place > where this thing can shine. > Let's discuss. > -- 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.