-
-
Save devn/3acd0c210113721eb024 to your computer and use it in GitHub Desktop.
This file contains 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 an.aot.shim) | |
(def service-ns "an.aot.server") | |
(def handler* (atom nil)) | |
(def handler (fn [request] (@handler* request))) | |
(defn init [] | |
(require (symbol service-ns)) | |
((resolve (symbol service-ns "init"))) | |
(reset! handler* ((resolve (symbol service-ns "handler"))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Specifically, you'd use this for a ring application. In your leiningen project.clj: