Created
June 3, 2010 19:35
-
-
Save bhenry/424349 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns attendance.core | |
(:use karras.core | |
karras.collection | |
karras.sugar | |
compojure.core | |
ring.adapter.jetty | |
hiccup.core) | |
(:require [compojure.route :as route])) | |
(defn home [] | |
(html | |
[:h1 "content-changed"] | |
[:p "paragraph inside content also changed"])) | |
(defroutes main-routes | |
(GET "/" [] (home)) | |
(route/not-found "<h1>Page not found</h1>")) | |
(defonce server (run-jetty main-routes {:port 8080 :join? false})) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment