Example Clojure project that implements a webserver with basic routing and templating capability using Jetty, Compojure, and Hiccup
Full documentation about this project can be found at: Clojure webserver with Jetty, Compojure, and Hiccup
Install Leiningen then checkout this project
run the following command in the root of the project:
lein run
navigate to http://localhost:3000
to see the homepage route. Navigate to an undefined route to execise 404 behaviour, e.g. http://localhost:3000/abc
.