Beating the Arc Challenge in Clojure
bestinclass.dk
bestinclass.dk
It probably makes more sense if you look at an example. Take a look at the multicounter example for seaside:
http://seaside.st/about/examples/multicounter
Notice the automatically generated k parameter that appears in the URL when you press one of the ++ or -- links. That is the id string for the per-page session.Scroll to the bottom of that page and you will see the code. I would love to code web pages like that. Compojure is not up to the challenge, and I don't think that weavejester is interested in changing that. Compojure is designed for REST applications, and we are talking about the polar opposite of REST.
Edit: Of course I also should have included seaside's answer to the arc challenge:
http://www.lukas-renggli.ch/blog/take-the-arc-challenge