Skip to content

Latest commit

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

README

tape.refmap

About

  • see this Integrant PR and associated issues.

  • aims to support both Clojure & ClojureScript

The refmap construct is similar to refset, but resolves to a map from keys to resolved refs, rather than a set of refs; it is useful when the keys are meaningful to the logic beyond just being a slot in the config map, and are required in further logic.

Usage

(nsmy-ns
(:require [tape.refmap :as rm]))
;; Use the refmap dependecy spec in config maps
{:foo/a (rm/refmap:foo/b), :foo/b1}
;; When reading edn configs, use the `#tape/refmap` tag symbol;; and extra `rm/readers` reader tags.
(ig/read-string {:readers rm/readers}
"{:foo/a #tape/refmap :foo/b, :foo/b 1}")

License

Copyright © 2019 clyfe

Distributed under the MIT license.

About

Like ig/refset, but resolves to a map from keys to resolved refs

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages