Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ibdknox
Created July 25, 2011 01:07
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 ibdknox/1103341 to your computer and use it in GitHub Desktop.
Save ibdknox/1103341 to your computer and use it in GitHub Desktop.
gen-handler
(require '[noir.server :as server])
(server/load-views "src/noir-example/views")
(def handler (server/gen-handler {:mode :dev
:ns 'noir-example}))
(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