Skip to content

Instantly share code, notes, and snippets.

@wilkes
Forked from bhenry/core.clj
Created June 3, 2010 21:14
Show Gist options
  • Save wilkes/424501 to your computer and use it in GitHub Desktop.
Save wilkes/424501 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 (var main-routes) {:port 8080 :join? false}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment