Paste number 73269: config

Index of paste annotations: 1

Paste number 73269: config
Pasted by: mmcgrana
When:5 months, 3 weeks ago
Share:Tweet this! | http://paste.lisp.org/+1KJ9
Channel:#clojure
Paste contents:
Raw Source | XML | Display As
; what i'd like to do, conceptually

; boot.clj
(let [env (determine-env-from-cl)]
  (binding [varname-accesible-from-myapp-config env]
    (require 'myapp.config)))

; myapp.config
(def env varname-accesible-from-myapp-config)
(def shared-val :same-for-all-envs)
(def forked-val (if (= env :prod) :for-prod-only :for-all-else))

Annotations for this paste:

Annotation number 1: untitled
Pasted by: mmcgrana
When:5 months, 3 weeks ago
Share:Tweet this! | http://paste.lisp.org/+1KJ9#1
Paste contents:
Raw Source | Display As
myapp.config -> myapp/config.clj

Colorize as:
Show Line Numbers
Index of paste annotations: 1

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.