Created
July 25, 2011 01:07
-
-
Save ibdknox/1103341 to your computer and use it in GitHub Desktop.
gen-handler
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
(require '[noir.server :as server]) | |
(server/load-views "src/noir-example/views") | |
(def handler (server/gen-handler {:mode :dev | |
:ns 'noir-example})) |
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 noir-example "0.1.0" | |
:description "An example of a noir project" | |
:dependencies [[org.clojure/clojure "1.2.1"] | |
[noir "1.1.0"]] | |
:dev-dependencies [[lein-ring "0.4.3"]] | |
:ring {:handler noir-example.server/handler} | |
:main noir-example.server) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment