Resources are files required for your project which are not source code (they might be images, edn, video, whatever). Resources go in the “resources” directory at the top of your project. They get stored into your app’s (or lib’s) jar.
(require '[clojure.java.io :as io]) (require '[clojure.edn :as edn]) (io/resource "foo.txt") (io/file (io/resource "foo.txt") (slurp (io/resource "foo.txt")) ;=> its text contents ;; The data in foo.edn. (edn/read-string (slurp (io/resource "foo.edn"))) ;; or (->> "foo.edn" io/resource slurp edn/read-string)