Created
July 27, 2011 18:02
-
-
Save cookrn/1109995 to your computer and use it in GitHub Desktop.
Your First Clojure Web App
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 myfirstwebapp.core) | |
(defn app [req] | |
{:status 200 | |
:headers {"content-Type" "text/html"} | |
:body "Hello World!"}) |
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
(defproject myfirstwebapp "0.0.1" | |
:description "A hello world for a Ring based web app" | |
:dependencies [[org.clojure/clojure "1.2.1"] | |
[ring "0.3.11"]] | |
:dev-dependencies [[lein-ring "0.4.5"]] | |
:ring {:handler myfirstwebapp.core/app}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment