Skip to content

Instantly share code, notes, and snippets.

@burke
Created August 11, 2009 23:04
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 burke/166172 to your computer and use it in GitHub Desktop.
Save burke/166172 to your computer and use it in GitHub Desktop.
(ns application.config.routes
(:use skyway))
;(require 'application.controllers.login)
(def my-ns *ns*)
(defroutes application-routes
(GET "/login" (binding [*ns* my-ns]
(require 'application.controllers.login)
(application.controllers.login/invoke)))
(ANY "*" (page-not-found)))
;; Causes: java.lang.ClassNotFoundException: application.controllers.login
;; Works fine if I uncomment line 4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment