Unfortunately, that wikibook is rather out of date by now. Compojure's documentation is generally not in the best of states; however, I'm holding off fixing it until I finish work on the next version in a couple of months. There doesn't seem much point in writing docs for a version that will soon be supplanted.
Originally, back in version 0.1, Compojure constructing Java servlets directly using defservlet. Now it uses defroutes to construct a Ring handler, which can then be turned into a servlet proxy with the "servlet" function. For example: (defroutes foobar (GET "/" "Hello World") (ANY "*" [404 "Page not found"])) (run-server {:port 8080} "/" (servlet foobar)) This code defines a Ring handler function, which is then converted into a servlet and passed to an embedded Jetty server. - James On Jan 20, 1:19 am, Jeff Schwab <j...@schwabcenter.com> wrote: > Hi: > > The compojure wikibook claims that compojure provides a defservlet > function, along with other syntactic conveniences that I seem to be > missing. Grepping the git log didn't turn up anything relevant, so I'm > wondering: Is compojure supposed to provide defservlet, or should I fix > the wikibook? > > http://en.wikibooks.org/wiki/Compojure/Core_Libraries
-- 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