Skip to content

Instantly share code, notes, and snippets.

@gzmask
Created May 21, 2013 01:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gzmask/5617046 to your computer and use it in GitHub Desktop.
Exception in thread "main" java.lang.RuntimeException: Unable to resolve symbol: index-page in this context, compiling:(richever_clj/handler.clj:8:15)
(ns richever_clj.handler
(:use compojure.core
hiccup.core)
(:require [compojure.handler :as handler]
[compojure.route :as route]))
(defroutes app-routes
(GET "/" [] (index-page))
(route/resources "/")
(route/not-found "Not Found"))
(def app
(handler/site app-routes))
(defn index-page []
(html5
[:head
[:title "Hello World"]
(include-css "/css/style.css")]
[:body
[:h1 "Hello World"]]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment