A library that makes integrant a little easier to use.
For example, you can write the following in dev.clj:
(ns dev
(:require [clojure.tools.namespace.repl :as ns-repl]
[integrant-tools.core :as ig-tools]))
(ns-repl/set-refresh-dirs "dev/src" "src")
(integrant.repl/set-prep! #(ig-tools/init "config.edn" "local.edn"))You can use more simpler #ref instead of #ig/ref:
{:adapter/jetty {:port 8080, :handler #ref :handler/greet}
:handler/greet {:name "Alice"}}You can define a constant by :def such as :duct/const:
{[:def :my-app/config] {:port 8080 :host "localhost"}}Just a #duct/env port:
{:adapter/jetty {:port #env ["PORT" Int :or 8080], :handler ref :handler/greet}
:handler/greet {:name "Alice"}}Copyright 2020-2021 Xcoo, Inc.
Licensed under the Apache License, Version 2.0.