Skip to content

Instantly share code, notes, and snippets.

@gzmask gzmask/handler.clj
Created May 21, 2013

What would you like to do?
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
(: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 []
[:title "Hello World"]
(include-css "/css/style.css")]
[:h1 "Hello World"]]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.