Skip to content

Instantly share code, notes, and snippets.

@bhenry
Created June 3, 2010 19:35
Show Gist options
  • Save bhenry/424349 to your computer and use it in GitHub Desktop.
Save bhenry/424349 to your computer and use it in GitHub Desktop.
(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