Created
June 15, 2016 00:47
-
-
Save rplevy/f776f38e25bd086157905efc420ed116 to your computer and use it in GitHub Desktop.
integrate environ with aero
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
(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