Skip to content

Instantly share code, notes, and snippets.

@ober
Created February 20, 2012 04:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ober/1867893 to your computer and use it in GitHub Desktop.
Save ober/1867893 to your computer and use it in GitHub Desktop.
compojure
(ns Kunabi.core
(:use
compojure.core
ring.adapter.jetty
hiccup.core))
(defroutes kunabi
(GET "/" [] (html [:h1 "hello world" ]))
(GET "/:name" [name] (html [:h1 "hello " name ])))
(run-jetty kunabi {:port 8080})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment