Created
May 21, 2013 01:57
-
-
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)
This file contains hidden or 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 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