require
makes the namespace available within your current namespace, but does not make the symbols directly available. You still need to namespace qualify the symbols, unless you use :refer
or use
.
(require '[junkyard-client.html-templates])
(def t (junkyard-client.html-templates/junkyard-client-templates))
It might be preferable to alias the namespace or refer the specific symbol you are using, for convenience.
Alias:
(require '[junkyard-client.html-templates :as templates])
(def t (templates/junkyard-client-templates))
Refer:
(require '[junkyard-client.html-templates :refer [junkyard-client-templates]])
(def t (junkyard-client-templates))
Note: require
and :refer
is generally preferred over use
.