-
-
Save colinkahn/2bbeac1573f923e187301704a7283cd3 to your computer and use it in GitHub Desktop.
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 project.core | |
(:require [project.module :refer [string]])) | |
(println string) |
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 project.module | |
#?(:clj | |
(:require [project.settings :as settings])) | |
#?(:cljs | |
(:require-macros [project.module :refer [compiled-string]]))) | |
#?(:clj | |
(do | |
(defmacro compiled-string [] | |
`(do ~(pr-str {:foo settings/foo :bar settings/bar :baz settings/baz}))) | |
)) | |
#?(:cljs | |
(do | |
(def string (compiled-string)) | |
)) |
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 project.settings) | |
(def foo 1) | |
(def bar 2) | |
(def baz 3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment