Skip to content

Instantly share code, notes, and snippets.

@rplevy
Created June 15, 2016 00:47
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 rplevy/f776f38e25bd086157905efc420ed116 to your computer and use it in GitHub Desktop.
Save rplevy/f776f38e25bd086157905efc420ed116 to your computer and use it in GitHub Desktop.
integrate environ with aero
(defn keywordize [s]
(-> (str/lower-case s)
(str/replace "_" "-")
(str/replace "." "-")
(keyword)))
(defmethod aero/reader 'env
[opts tag value]
(get env (keywordize (str value))))
;; authors: @matthiasmargush @rplevy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment