PageRenderTime 26ms CodeModel.GetById 33ms RepoModel.GetById 1ms app.codeStats 0ms

/README.markdown

https://github.com/tcrayford/compojure
Markdown | 62 lines | 43 code | 19 blank | 0 comment | 0 complexity | 25fdd679cba1ded60a2a41698532f824 MD5 | raw file
  1. Compojure is an open source web framework for the [Clojure](http://clojure.org)
  2. programming language. It emphasizes a thin I/O layer and a functional approach
  3. to web development.
  4. Compojure is still in active development. The current stable branch has been
  5. released as version 0.3.1.
  6. Sample Code
  7. -----------
  8. Here's a small web application written in Compojure:
  9. (use 'compojure)
  10. (defroutes my-app
  11. (GET "/"
  12. (html [:h1 "Hello World"]))
  13. (ANY "*"
  14. (page-not-found)))
  15. (run-server {:port 8080}
  16. "/*" (servlet my-app))
  17. Dependencies
  18. ------------
  19. To run Compojure, you'll need:
  20. * The [Clojure](http://clojure.org) programming language
  21. * The [Clojure-Contrib](http://code.google.com/p/clojure-contrib/) library
  22. * A Java servlet container like [Jetty](http://www.mortbay.org/jetty/)
  23. * Apache Commons [FileUpload](http://commons.apache.org/fileupload),
  24. [IO](http://commons.apache.org/io) and
  25. [Codec](http://commons.apache.org/codec).
  26. These dependencies can be downloaded automatically using:
  27. ant deps
  28. Documentation
  29. -------------
  30. For information on how to get started and use Compojure, please see our
  31. [Wiki](http://en.wikibooks.org/wiki/Compojure).
  32. There is also a rough draft of a [Compojure Tutorial](http://groups.google.com/group/compojure/browse_thread/thread/3c507da23540da6e)
  33. available to read.
  34. Community
  35. ---------
  36. The [Compojure Group](http://groups.google.com/group/compojure) is the best place
  37. to ask questions about Compojure, suggest improvements or to report bugs.
  38. Tutorials
  39. ---------
  40. Eric Lavigne has written a series of excellent tutorials on Compojure:
  41. * [Install Compojure on a Slicehost VPS](http://ericlavigne.wordpress.com/2008/12/18/compojure-on-a-slicehost-vps/)
  42. * [Using PostgreSQL with Compojure](http://ericlavigne.wordpress.com/2008/12/28/using-postgresql-with-compojure/)
  43. * [Compojure security: authentication and authorization](http://ericlavigne.wordpress.com/2009/01/04/compojure-security-authentication-and-authorization/)