duct-framework / duct

Server-side application framework for Clojure
MIT License
1.13k stars 51 forks source link

How to create a key with a constant value #96

Closed viebel closed 5 years ago

viebel commented 5 years ago

I would like to have in my configuration a key (e.g. :location-of-assets) with a constant value where the value could be overriden by local and dev files.

How can I achieve that without having to write a multimethod init-key that handles my:location-of-assets?

weavejester commented 5 years ago

You can derive a key from :duct/const if you want a constant.

viebel commented 5 years ago

Thanks. This is exactly what I was looking for. Should it be documented somewhere?